create-servicecommand will create a Grails service class for the given base name.
grails create-service book
DescriptionCreates a service for the give base name. For example for a base name
booka service called
BookServicewill be created in the
grails-app/servicesdirectory.A service class encapsulates business logic and is delegated to by controllers to perform the core logic of a Grails application. For more information on tags refer to the section on Services in the user guide.
Note that this command is merely for convenience and you can also create services in your favorite text editor or IDE if you choose.Usage:
grails create-service [name]
CreatedFile- When the service has been created