Languages
[Edit]
EN

Maven - example pom file with Spring Boot 2.4 + Tomcat 9 + JSP + Servlet 4.0 + log4j2 + Lombok + Hibernate + JPA + MySQL

5 points
Created by:
Root-ssh
178170

In this article, we want to show an example Maven pom.xml file configuration to use together:

  • Spring Boot 2.4
  • Tomcat 9 (JSP files, Servlet 4.0)
  • log4j2
  • Lombok
  • Hibernate + JPA + JPA 2 Metamodel Generator
  • MySQL
  • JUnit 4

  • WAR package output

Note: the below configuration enables automatic pre-compilation for Lombok and Metamodel Generator.

Run mvn clean install package to build the executable war file.
Run java -jar target/my-project.war to start Spring Boot Application (with Tomcat 9 that supports JSP files).

example pom.xml file:

 

1
Donate to Dirask
Our content is created by volunteers - like Wikipedia. If you think, the things we do are good, donate us. Thanks!
Join to our subscribers to be up to date with content, news and offers.
Native Advertising
🚀
Get your tech brand or product in front of software developers.
For more information Contact us
Dirask - we help you to
solve coding problems.
Ask question.

❤️💻 🙂

Join