IntelliJ IDEA
 
Get IntelliJ IDEA
You are viewing the documentation for an earlier version of IntelliJ IDEA.

Create Grails application elements

Last modified: 01 August 2022

IntelliJ IDEA enables easy creation of the Grails or Griffon Application elements in the modules of the corresponding type (domain classes, controllers, scripts etc.) You can create new elements using the application-specific Grails or Griffon tool windows, or the Project tool window.

Execution of the target that corresponds to the selected element type, is displayed in the console.

IntelliJ IDEA provides the possibility to create Grails filters in one click. Just press Alt+Insert, and choose Grails Filter on the popup menu. After executing the CreateFilters.groovy target, the stub class with the filter definition is created under grails-app/conf directory of your Grails application.

Note that IntelliJ IDEA automatically provides the proper name of your filter class (*Filters.groovy), so you only need to specify the initial characters of the filter class name.