security.xml strange error using Spring

后端 未结 2 1521
盖世英雄少女心
盖世英雄少女心 2021-01-23 18:31

I am trying to configure Spring Security in my simple application. Here is my configuration file, security.xml:



        
相关标签:
2条回答
  • 2021-01-23 18:58

    You're declaring the namespace as b: and using it everywhere except the enclosing beans tag, in which you're using beans:beans instead of b:beans.

    0 讨论(0)
  • 2021-01-23 19:14

    You're missing up the beans and b prefixes. You've declared the b prefix, and then used the beans one. You need to pick one and stick with it. For example, replace

    xmlns:b="http://www.springframework.org/schema/beans" 
    

    with

    xmlns:beans="http://www.springframework.org/schema/beans" 
    

    and then

    <b:bean...
    

    with

    <beans:bean...
    
    0 讨论(0)
提交回复
热议问题