Spring I';我在添加JPA依赖项时遇到问题
以下方法不存在:Spring I';我在添加JPA依赖项时遇到问题,spring,spring-boot,maven,spring-mvc,spring-data-jpa,Spring,Spring Boot,Maven,Spring Mvc,Spring Data Jpa,以下方法不存在: org.springframework.transaction.annotation.SpringTransactionAnnotationParser.isCandidateClass(SpringTransactionAnnotationParser.java:44) 该方法的类org.springframework.core.annotation.AnnotationUtils可从以下位置获得: org.springframework.core.annotation.A
org.springframework.transaction.annotation.SpringTransactionAnnotationParser.isCandidateClass(SpringTransactionAnnotationParser.java:44)
该方法的类org.springframework.core.annotation.AnnotationUtils可从以下位置获得:
org.springframework.core.annotation.AnnotationUtils.isCandidateClass(Ljava/lang/Class;Ljava/lang/Class;)Z
它是从以下位置加载的:
<!-- jpa -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-jpa</artifactId>
</dependency>
jar:file:/C:/Users/gustavo.felix/.m2/repository/org/springframework/spring-core/5.1.9.RELEASE/spring-core-5.1.9.RELEASE.jar!/org/springframework/core/annotation/AnnotationUtils.class
行动:
请更正应用程序的类路径,使其包含org.springframework.core.annotation.AnnotationUtils的一个兼容版本我认为我们需要比这多得多的数据,特别是POM文件。听起来依赖关系管理混乱了。请提供整个pom文件。我猜您的
初始父项
依赖关系有问题,或者依赖关系管理有问题
file:/C:/Users/gustavo.felix/.m2/repository/org/springframework/spring-core/5.1.9.RELEASE/spring-core-5.1.9.RELEASE.jar