Grails 3 graphics only create a forest catalog - no artifact catalog

The main patterns that I want to change are artifacts. Does anyone know how to create artifact templates?

In addition, he only installed these three files in the forest directory: AsyncController.groovy, AsyncSpec.groovy, ScaffoldedController.groovy.

+5
source share
1 answer

Actually there is a problem with the install-template command. In Grails version 3.1, it does not create an artifact directory with browse pages (gsp) as expected.

You just need to create an artifact catalog and put your customized viewing pages into it:

/$YOUR_GRAIL_APP_DIR/src/main/templates/artifacts/scaffolding/create.gsp /$YOUR_GRAIL_APP_DIR/src/main/templates/artifacts/scaffolding/edit.gsp /$YOUR_GRAIL_APP_DIR/src/main/templates/artifacts/scaffolding/index.gsp /$YOUR_GRAIL_APP_DIR/src/main/templates/artifacts/scaffolding/show.gsp 

Hello,

- Silvio

+2
source

Source: https://habr.com/ru/post/1242252/


All Articles