BeanDefinitionStoreException Failed to read candidate component class

后端 未结 8 646
醉梦人生
醉梦人生 2020-12-05 19:20

Can someone tell me how to solve this issue?

I have narrowed down the problem to the pom.xml file. My project works but when I add the following dependency I get an

8条回答
  •  被撕碎了的回忆
    2020-12-05 20:21

    You most likely have conflicting Spring dependencies on your classpath. It's probably an old spring-asm JAR.

    Run mvn dependency:tree -Dincludes=:spring*:: and check for conflicts. The best way to avoid these is to put a dependency on the spring-framework-bom in your project's dependencyManagement section, as follows

            
                org.springframework
                spring-framework-bom
                4.0.3.RELEASE
                pom
                import
            
    

    These versions are supported.

提交回复
热议问题