1. Create a Spring Boot Project
- Go to File > New > Spring Starter Project.
- Specify:
- Project name
- Group ID
- Artifact ID
- Base package name
- Keep packaging as JAR for a Spring MVC web application.
2. Add Dependencies
Include the following dependencies in the project:
- Web: Spring Web
- SQL:
- Dev: Spring Boot DevTools
- Lombok
- Validation
- Actuator
3. Configure application.properties
- Copy the entries from the supplied
application.properties
file.
- Edit the database configuration as needed.
3.5. Spring MVC ViewResolver Configuration
Add the following to application.properties
for JSP view layer:
spring.mvc.view.prefix=/WEB-INF/views
spring.mvc.view.suffix=.jsp
4. Additional Dependencies for Spring MVC with JSP View Layer