【发布时间】:2014-06-08 06:28:55
【问题描述】:
我的spring security.xml
<beans:beans xmlns="http://www.springframework.org/schema/security"
xmlns:beans="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-3.0.xsd
http://www.springframework.org/schema/security
http://www.springframework.org/schema/security/spring-security-3.2.xsd">
<http auto-config="true">
<intercept-url pattern="/admin**" access="ROLE_USER" />
</http>
<authentication-manager>
<authentication-provider>
<user-service>
<user name="suvajit" password="123456" authorities="ROLE_USER" />
</user-service>
</authentication-provider>
</authentication-manager>
</beans:beans>
我正在使用
org.springframework.security.config-3.0.3.RELEASE.jar
org.springframework.security.core-3.0.3.RELEASE.jar
org.springframework.security.web-3.0.2.RELEASE.jar
为了弹簧安全..
它给了我编译错误
cvc-complex-type.2.4.c:匹配的通配符是严格的,但是找不到元素'authentication-manager的声明
在这一行发现了多个注释:
- schema_reference.4: 无法读取架构文档 'http://www.springframework.org/schema/security/
spring-security-3.2.xsd',因为
- 找不到文档;
- 无法读取文档;
- 文档的根元素不是 .
- cvc-complex-type.2.4.c:匹配通配符是严格的,但找不到元素“http”的声明。
分别用于 authentication-manager 和 http 标签
请澄清我哪里错了
【问题讨论】:
标签: spring spring-mvc spring-security