添加JPA依赖项时出现问题

时间:2020-10-09 19:42:52

标签: spring spring-boot maven spring-mvc spring-data-jpa

<!-- jpa -->
    <dependency>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter-data-jpa</artifactId>
    </dependency>

申请无法开始


说明:

试图调用一个不存在的方法。尝试是从以下位置进行的:

org.springframework.transaction.annotation.SpringTransactionAnnotationParser.isCandidateClass(SpringTransactionAnnotationParser.java:44)

以下方法不存在:

org.springframework.core.annotation.AnnotationUtils.isCandidateClass(Ljava/lang/Class;Ljava/lang/Class;)Z

该方法的类org.springframework.core.annotation.AnnotationUtils可从以下位置获得:

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

它是从以下位置加载的:

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的单个兼容版本

0 个答案:

没有答案