Spring security3 “You cannot use a spring-security-2.0.xsd schema”

后端 未结 3 946
-上瘾入骨i
-上瘾入骨i 2021-01-01 17:15

I keep getting...

    org.springframework.beans.factory.parsing.BeanDefinitionParsingException: 
Configuration problem: You cannot use a spring-security-2.0.         


        
3条回答
  •  自闭症患者
    2021-01-01 18:07

    The schema you are pointing to is spring-security-3.1.xsd, but the pom.xml declares spring-security-config-3.0.1.RELEASE. You should update your version of Spring Security or downgrade the version of the spring security namespace. Note when changing versions ensure that all Spring versions match and all Spring Security versions match (this includes transitive dependencies) otherwise you will get strange errors.

提交回复
热议问题