使用maven错误构建 - Spring安全配置

时间:2014-03-11 14:18:17

标签: spring maven spring-security

当我尝试使用maven构建我的项目时,我收到此错误消息。

cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'authentication-manager'.
cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'global-method-security'.
cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'http'.

我正在使用Spring framework 3.0.2

1 个答案:

答案 0 :(得分:0)

添加

xmlns="http://www.springframework.org/schema/security"
xsi:schemaLocation="http://www.springframework.org/schema/security http://www.springframework.org/schema/security/spring-security-3.0.xsd"

到您的xml配置