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

后端 未结 11 1175
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:49

    Migrate your spring version from 2.5 to >=3.2.3.

    For Spring migration you need to do following changes -

    1) In your pom.xml remove dependency for spring 2.5.6 and add dependency for spring new version.

    2) Update 'xsi:schemaLocation' in beans tag of applicationcontet.xml file of your project.

    e.g update http://www.springframework.org/schema/beans/spring-beans-2.5.xsd to http://www.springframework.org/schema/beans/spring-beans-3.2.xsd for spring 3.2.3 version.

    3) Clean,build and re-deploy your project.

提交回复
热议问题