发现无效的内容以元素“ global-method-security”开头

用户名

在下面的代码中,我遇到了类似“ cvc-complex-type.2.4.a”的错误:发现了以元素“ global-method-security”开头的无效内容。其中一个“ {” http://www.springframework。 org / schema / beans “:import,” http://www.springframework.org/schema/ beans“:别名,” http://www.springframework.org/schema/beans“:bean,WC [## other :““ http:// www.springframework.org/schema/beans”],“应该使用http://www.springframework.org/schema/beans”:beans }“。

如何解决呢?

 <?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:context="http://www.springframework.org/schema/context"
xmlns:security="http://www.springframework.org/schema/security"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.2.xsd
    http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.2.xsd
    http://www.springframework.org/schema/security http://www.springframework.org/schema/security/spring-security-3.1.xsd">



<context:component-scan base-package="client.security"/>

<global-method-security secured-annotations="enabled" />


</beans>
洛克纳斯

更换

"<global-method-security secured-annotations="enabled" />" line with 

     <security:global-method-security secured-annotations="enabled"/>

它应该工作..

本文收集自互联网,转载请注明来源。

如有侵权,请联系[email protected] 删除。

编辑于
0

我来说两句

0条评论
登录后参与评论

相关文章

来自分类Dev

发现无效的内容以元素“ global-method-security”开头

来自分类Dev

发现内容以元素“ property”开头的内容无效

来自分类Dev

发现内容以元素“ property”开头的内容无效

来自分类Dev

Maven:发现无效的内容以元素“ plugin”开头

来自分类Dev

发现无效的内容,以元素“ hc:html”开头

来自分类Dev

发现以元素“Generator”开头的无效内容

来自分类Dev

发现XML无效的内容以元素开头。预期为“ {}”之一

来自分类Dev

如何“解决发现以元素开头的无效内容” Schematron错误?

来自分类Dev

发现无效的内容以元素“ init-param”开头

来自分类Dev

使用Maven进行Mule编译失败:以元素'db:generic-config'开头发现无效内容

来自分类Dev

Spring Security XML错误-cvc-complex-type.2.4.a:发现无效的内容(从元素“ csrf”开始)

来自分类Dev

cvc-complex-type.2.4。在faces-config.xml中发现了以元素工厂开头的无效内容

来自分类Dev

Spring Security-'global-method-security'不起作用

来自分类Dev

出现错误cvc-complex-type.2.4.d:通过Java代码编译jrxml时,发现以元素“ paragraph”开头的内容无效

来自分类Dev

从元素开始发现无效的内容

来自分类Dev

内容开头的目标元素

来自分类Dev

HandlerInterceptorAdaptarer Spring-从元素'bean'开始发现无效内容

来自分类Dev

从元素文件:inbound-endpoint开始发现无效内容

来自分类Dev

cvc-complex-type.2.4.a:发现无效的内容(从元素'MarkupListURI'开始)。预期为“ {MarkupDeleteURI}”之一

来自分类Dev

cvc-complex-type.2.4.a:发现无效的内容(从元素'ProcessDesc'开始)。预期为ProcessName之一

来自分类Dev

使用Maven进行Mule编译失败:从元素'db:generic-config'开始发现无效内容

来自分类Dev

cvc-complex-type.2.4.a:发现无效的内容(从元素“ bean”开始)

来自分类Dev

cvc-complex-type.2.4.a:发现无效的内容(从元素“ param”开始)。预期为“ {param}”之一

来自分类Dev

lineNumber:12; columnNumber:139; cvc-complex-type.2.4.a:发现无效的内容(从元素'beans:bean'开始)

来自分类Dev

Android SDK安装。错误:发现从元素'd:skin'开始的无效内容。目前预计没有子元素

来自分类Dev

XSD错误中的XML发现无效内容

来自分类Dev

“ \” @ \”在代码块的开头无效

来自分类Dev

返回所有属性以某些内容开头的元素

来自分类Dev

Twilio错误:“ 12200架构验证警告说明”从元素'Message'开始发现无效的内容。'{Play“之一

Related 相关文章

  1. 1

    发现无效的内容以元素“ global-method-security”开头

  2. 2

    发现内容以元素“ property”开头的内容无效

  3. 3

    发现内容以元素“ property”开头的内容无效

  4. 4

    Maven:发现无效的内容以元素“ plugin”开头

  5. 5

    发现无效的内容,以元素“ hc:html”开头

  6. 6

    发现以元素“Generator”开头的无效内容

  7. 7

    发现XML无效的内容以元素开头。预期为“ {}”之一

  8. 8

    如何“解决发现以元素开头的无效内容” Schematron错误?

  9. 9

    发现无效的内容以元素“ init-param”开头

  10. 10

    使用Maven进行Mule编译失败:以元素'db:generic-config'开头发现无效内容

  11. 11

    Spring Security XML错误-cvc-complex-type.2.4.a:发现无效的内容(从元素“ csrf”开始)

  12. 12

    cvc-complex-type.2.4。在faces-config.xml中发现了以元素工厂开头的无效内容

  13. 13

    Spring Security-'global-method-security'不起作用

  14. 14

    出现错误cvc-complex-type.2.4.d:通过Java代码编译jrxml时,发现以元素“ paragraph”开头的内容无效

  15. 15

    从元素开始发现无效的内容

  16. 16

    内容开头的目标元素

  17. 17

    HandlerInterceptorAdaptarer Spring-从元素'bean'开始发现无效内容

  18. 18

    从元素文件:inbound-endpoint开始发现无效内容

  19. 19

    cvc-complex-type.2.4.a:发现无效的内容(从元素'MarkupListURI'开始)。预期为“ {MarkupDeleteURI}”之一

  20. 20

    cvc-complex-type.2.4.a:发现无效的内容(从元素'ProcessDesc'开始)。预期为ProcessName之一

  21. 21

    使用Maven进行Mule编译失败:从元素'db:generic-config'开始发现无效内容

  22. 22

    cvc-complex-type.2.4.a:发现无效的内容(从元素“ bean”开始)

  23. 23

    cvc-complex-type.2.4.a:发现无效的内容(从元素“ param”开始)。预期为“ {param}”之一

  24. 24

    lineNumber:12; columnNumber:139; cvc-complex-type.2.4.a:发现无效的内容(从元素'beans:bean'开始)

  25. 25

    Android SDK安装。错误:发现从元素'd:skin'开始的无效内容。目前预计没有子元素

  26. 26

    XSD错误中的XML发现无效内容

  27. 27

    “ \” @ \”在代码块的开头无效

  28. 28

    返回所有属性以某些内容开头的元素

  29. 29

    Twilio错误:“ 12200架构验证警告说明”从元素'Message'开始发现无效的内容。'{Play“之一

热门标签

归档