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
Similar Posts:
- Springboot startup error start bean ‘eurekaautoserviceregistration’ NullPointerException
- ERROR in ch.qos.logback.core.joran.spi.Interpreter@73:41 – no applicable action for [AppenderRef], current ElementPath is [[Configuration][Loggers][Root][AppenderRef]]
- Springboot always reports an error when importing JSP dependencies
- [How to Solve] RestController cannot be recognized in spring boot
- Unregistering JMX-exposed beans on shutdown Solution
- Factory method ‘eurekaClient’ threw exception; nested exception is java.lang.RuntimeException: Failed to initialize DiscoveryClient!
- [Exception] LoggerFactory is not a Logback LoggerContext but Logback is on the classpath. Either r…
- Springcloud: gateway module startup error
- Eureka server project startup error handling
- [Solved] Error attempting to get column ‘create_time‘ from result set. Cause: java.sql.SQLFeatureNotSupported