Spring Security 应用程序的 spring-servlet.xml 的 bean 组件需要 xmlns
如何确定 Spring Security 应用程序的 spring-servlet.xml(spring 配置文件)的 beans 组件需要哪些 xmlns?
这是正确的代码吗?
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
http://www.springframework.org/schema/security http://www.springframework.org/schema/security/spring-security-2.0.4.xsd">
...
</beans>
How to determine what xmlns are required for beans component of my spring-servlet.xml(spring configuration file) for spring security application?
Is this is the correct code?
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
http://www.springframework.org/schema/security http://www.springframework.org/schema/security/spring-security-2.0.4.xsd">
...
</beans>
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我在 spring 框架参考中得到了答案,如下所述:
一般来说,它应该是这样的。供参考 Spring Security 3.0 参考
I got my answer in the spring framework reference and that is mention below:
In general it should be like this. for reference Spring Security 3.0 Reference