解决Spring Roo Demo中"security setup"的问题

01 July 2013

Spring Roo的Pizza Shop教程(http://static.springsource.org/spring-roo/reference/html/beginning.html)中提到在Roo Shell使用"security setup"为应用程序设置Spring Security. 设置完成后在Web Server中运行报错

org.springframework.beans.factory.parsing.BeanDefinitionParsingException: Configuration problem: Unable to locate Spring NamespaceHandler for XML schema namespace [http://www.springframework.org/schema/security]
Offending resource: file [D:\projekty\diplomka_workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\e-library\WEB-INF\classes\META-INF\spring\applicationContext-security.xml]

需要将Spring Security的jar包拷贝到Web应用程序的lib目录:\pizza\src\main\webapp\WEB-INF\lib

再次编译运行正常


下一篇: 设置CouchDB支持JSONP跨域请求 →

blog comments powered by Disqus