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

后端 未结 4 1743
伪装坚强ぢ
伪装坚强ぢ 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:35

    Take attention: when you use context namespace, you should update in XML head 2 attributes:

    • xmlns:context
    • xsi:schemaLocation.

    Beginners used to add only xmlns:context and forget about 2 new entries to xsi:schemaLocation:

    
    

提交回复
热议问题