Spring/Java error: namespace element 'annotation-config' … on JDK 1.5 and higher

后端 未结 11 1177
Happy的楠姐
Happy的楠姐 2020-11-29 00:47

I have Spring/Java App that is compiled with Compiler compliance level 1.5.

I have a new Linux setup where I downloaded Apache Tomcat 8.0.8<

11条回答
  •  粉色の甜心
    2020-11-29 01:41

    i had the same problem, but i have a solution:

    in your project file pom.xml replace:

    
        org.springframework
        spring
        2.5.6
    
    

    for:

    
        org.springframework
        spring-core
        4.1.4.RELEASE
    
    
    
        org.springframework
        spring-context
        4.1.4.RELEASE
    
    

    and say good bye to your problems!!

    This two dependecies are the replacement for the firts dependency in the most part.

提交回复
热议问题