Demonstrates the capabilities of the Spring MVC web framework through small, a simple and basic example to add, edit, delete and view using java Spring MVC, (MySQL) as database. After practicing this crud operation, you should have a good understanding of what Spring MVC can do and get a feel for how easy it is to use.
In this example you'll see the following in action:
- The simplest possible @Controller
- The @RequestMapping annotation is used to map the request url
- Obtaining Request Data
- Generating Responses
- Message Converters
- Rendering Views
- Forms
Clone the repository:
$ git clone https://github.com/vinodnimbalkar/SpringCrud.git
If this is your first time using Github, review http://help.github.com to learn the basics.
From the command line with Maven:
$ cd SpringCrud
$ mvn jetty:run
Access the deployed web application at: http://localhost:8080/SpringCrud/
This example originated from a (https://www.javatpoint.com/spring-mvc-crud-example)