Spring-security cannot match “?parameter” format?

后端 未结 2 847
我寻月下人不归
我寻月下人不归 2020-12-19 05:39

I use spring-security to secure my web, when I\'m learning it by spring-roo generated config file in applicationContext-security.xml, in node:

2条回答
  •  青春惊慌失措
    2020-12-19 05:57

    By default spring security uses ant style matching, which can't match on parameters. Regex matching, however, can match on parameters

    Try defining it like so:

    
      
    
    

    Don't know why Roo doesn't do this automatically. Seems like it should.

提交回复
热议问题