You will see this on the Internet: the solution is to remove the JavaEE package from MyEclipse, create your own user libraries, add the jsf-api.jar jsf-impl.jar jstl-1.2.jar package in JavaEE, and then add the servlet-api.jar in Tomcat. In fact, the javaee.jar in JavaEE is replaced with the servlet-api.jar in Tomcat. This problem is solved.
You can also see this solution:
<dependency> <groupId>tk.mybatis</groupId> <artifactId>mapper-spring-boot-starter</artifactId> <version>1.1.1</version> <exclusions> <exclusion> <groupId>javax.persistence</groupId> <artifactId>persistence-api</artifactId> </exclusion> </exclusions> </dependency>
You can also see this solution:
<dependency> <groupId>org.springframework.data</groupId> <artifactId>spring-data-jpa</artifactId> <version>2.1.5.RELEASE</version> </dependency>
You can also see this solution:
<dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-data-jpa</artifactId> </dependency>
There is also this solution:
<dependency> <groupId>org.hibernate.javax.persistence</groupId> <artifactId>hibernate-jpa-2.0-api</artifactId> <version>1.0.1.Final</version> </dependency>
Try it all