java.lang.NoSuchMethodError: org.springframework.core.annotation.AnnotationUtils.isInJavaLangAnnotationPackage(Ljava/lang/annotation/Annotation;)Z

前端 未结 5 1564
滥情空心
滥情空心 2020-12-01 16:08

Am very new to spring and JUnit. Am trying to run a simple JUnit test case for spring service class, but it fails and I get this exception.I didnt write any test yet, but t

5条回答
  •  攒了一身酷
    2020-12-01 17:00

    Try this from https://stackoverflow.com/a/63215379/9225032:

    Just check all spring dependencies versions. All should be same or at least new. Example:

    
        org.springframework
        spring-orm
        5.2.5.RELEASE
    
                
    
        org.springframework
        spring-tx
        5.2.5.RELEASE
    
        
    
        org.springframework
        spring-webmvc
        5.2.5.RELEASE
    
    

提交回复
热议问题