To create and run a simple helloworld application, perform the following tasks:
For more information on creating Grails applications, see the Grails Quick Start.
Change to the as-install/grails/samples directory.
Run the grails create-app helloworld command.
The grails create-app command creates a helloworld application that you can modify.
Change to the as-install/grails/samples/helloworld directory.
Run the grails create-controller hello command.
The grails create-controller command creates a controller file that you can modify in the /grails/samples/helloworld/grails-app/controllers directory:
Edit the generated HelloController.groovy file so that it looks as follows:
class HelloController { def world = { render "Hello World!" } //def index = { } }