项目从spring3升级到spring4 报Unable to locate Spring NamespaceHandler for XML schema namespace [http://www.springframework.org/schema/security] Offending resource: class path resource [securityConfig.xml]


  项目从spring3升级到spring4 报Unable to locate Spring NamespaceHandler for XML schema namespace [http://www.springframework.org/schema/security] Offending resource: class path resource [securityConfig.xml]

 

解决方案:添加spring-security-config包

 

1 <!-- https://mvnrepository.com/artifact/org.springframework.security/spring-security-config -->
2 <dependency>
3     <groupId>org.springframework.security</groupId>
4     <artifactId>spring-security-config</artifactId>
5     <version>4.1.3.RELEASE</version>
6 </dependency>

 原文链接:http://www.baeldung.com/unable-to-locate-spring-namespacehandler-for-xml-schema-namespace


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM