A simple web application developed in Java 8.
- Spring Framework
- Core
- Web MVC
- Data JPA
- Transaction Management
- Hibernate 5.3 / JPA 2.1
- Hibernate Validator 6
- Lombok
- Gson
RDBMS: MySQL;
Build system: Maven 3;
Servlet container: Tomcat 8 or 9;
View technologies: JSP / JSTL + CSS (EL and Spring Form taglib);
Logging utility: Log4j.
Make sure that MySQL service is running and configure connection properties in /resources/db.properties file
-
Package app
mvn clean package
-
Deploy spring-mvc-jpa-jdk8.war to Tomcat
Just copy the war file to webapps folder and launch Tomcat via bin\catalina.bat or bin/catalina.shbin\catalina.bat start bin/catalina.sh start
- Import project in IDEA
- Create new Run/Debug configuration (Tomcat Server > Local) and configure your application server (specify path to Tomcat in your environment).
- Run this configuration