Get Super Productive with Intellij File Templates
This title could be clearer and more informative.Try out Clickbait Shieldfor free (5 uses left this month).
IntelliJ IDEA File Templates let you create custom file scaffolding beyond the default Class/Interface options. The post walks through creating single-file templates for Spring REST Controllers, JPA Entities, and Spring Data JPA Repositories using Velocity template syntax. It then shows how to combine these into a multi-file parent template that generates a full API boilerplate (Entity, Repository, Service, Controller) in one step by entering just the entity name. A bonus tip covers using Structural Search and Replace to refactor @RequestMapping annotations into @GetMapping.
Table of contents
Creating Single File TemplatesTemplates with multiple filesFew feature requestsHow about a bonus tip?Sort: