How to unsecure /** URL pattern in spring-security

前端 未结 2 1234
猫巷女王i
猫巷女王i 2021-01-19 00:05

I\'m trying to unsecure the /** pattern, but all my tries are in vain so far.

This is what I\'m doing:



        
2条回答
  •  抹茶落季
    2021-01-19 00:40

    Why configure Spring Security if You want to turn in off completelly in the first place?

    If You wan it off in dev mode why not put it in seperate XML and not load this single file when id dev mode and comment the springSecurityFilterChain in web.xml? (the second one You can do with Maven resource processing).

    Or try some dummy entry before the /** matcher:

    
    
    

    Still don't really get the reason why would You need the security fully configured and turned in the same time off?

提交回复
热议问题