Spring安全性XML SCHEMA

时间:2011-09-30 02:42:18

标签: xml xsd spring-security

我得到以下XML文件的PARSE异常..

<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.xsd
                http://www.springframework.org/schema/security 
                http://www.springframework.org/schema/security/spring-security-3.1.xsd">

<http pattern="/static/**" secured="false" />

 <http use-expressions="true">
    <intercept-url pattern="/jsp/**" access="isAuthenticated()"/>
    <form-login />
    <logout />
 </http>
</beans:beans>

完全例外是

  

“cvc-complex-type.3.2.2:属性'secure'不允许出现在元素'http'中。”

我查了一下spring-security-3.1.xsd,似乎没有http的“安全”属性。还有其他人有这个问题吗?

0 个答案:

没有答案