Auto-generating Spring MVC controllers andJSPX views from JPA entities
Spring Roo comes with a Web MVC add-on, which supports creating Spring MVC controllers and JSPX views from Roo-managed JPA entities. Spring Roo provides multiple commands, processed by a Web MVC add-on, to help with the auto-generation of the Spring MVC controllers and JSPX views. By default the controllers generated by Roo support creating, reading, updating, and deleting JPA entities from the data store.
The following commands are provided by Roo for creating controllers:
controller all
: It is used for scaffolding a Spring Web MVC controller for each JPA entity in the application for which a controller doesn't already exist. Thecontroller all
command doesn't give you any control over application functionality supported by generated controllers.controller scaffold
: It is used for scaffolding a Spring Web MVC controller corresponding to a JPA entity. Unlikecontroller all
command, thecontroller scaffold
command provides...