Getting error message with spring “cvc-elt.1: Cannot find the declaration of element 'beans'.”

后端 未结 5 1460
心在旅途
心在旅途 2020-12-19 01:50

I\'m trying to set up a simple spring application and I\'m getting the below exception. This is being run standalone in eclipse indigo.

Exception in thread \         


        
5条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-12-19 02:31

    There could be possibility of mismatch of Spring Bean version and xsd definition.

    For Example beans xsi:schemaLocation="http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-3.2.xsd http://www.springframework.org/schema/mvc http://www.springframework.org/schema/mvc/spring-mvc-3.2.xsd http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.2.xsd http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-3.2.xsd http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx.xsd http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.0.xsd

    While in spring version is 3.0.5-Release

    Check classpath version and keep them same. Shoul

提交回复
热议问题