create-servicecommand creates a Grails service class and associated unit test for the given base name.
grails create-service org.bookstore.book
DescriptionCreates a service for the give base name. For example for a base name
org.bookstore.booka service called
BookServicewill be created in the
grails-app/services/org/bookstoredirectory.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 services refer to the section on Services in the user guide.
Note that this command is just 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