no declaration can be found for element 'context:annotation-config'

后端 未结 4 1742
伪装坚强ぢ
伪装坚强ぢ 2021-02-05 04:07

in spring whenever i write in my spring.xml i get this error:-

Exception in thread \"main\" org.springfram

4条回答
  •  名媛妹妹
    2021-02-05 04:25

    You are using an XML namespace (in this case context) without declaring it

    Change your xml to this:

    
    
    

    You were also referencing http://www.springframework.org/schema/beans/spring-beans-4.0.xsd, which I don't think exists.

提交回复
热议问题