【问题标题】:Building with maven errors - Spring security config使用 Maven 错误构建 - Spring 安全配置
【发布时间】:2014-04-15 05:25:44
【问题描述】:

当我尝试使用 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 框架 3.0.2

【问题讨论】:

  • 您的安全 XML 配置中有哪些命名空间和 xsd?
  • @holmis83 spring-bean-3.0 和 spring-security-3.0 xsds

标签: spring maven spring-security


【解决方案1】:

添加

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 配置

【讨论】:

    猜你喜欢
    • 2019-01-24
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2012-09-19
    • 2013-10-22
    • 2014-10-05
    • 1970-01-01
    • 2015-09-07
    相关资源
    最近更新 更多