Spring Security 3 specify multiple intercept-url access roles

前端 未结 5 1287
执念已碎
执念已碎 2021-02-05 09:33

I am trying to setup Spring 3 security using JDBC auth. Everything is working fine apart from when I try to specify multiple access roles to an intercept-url. Eg I want anyone w

5条回答
  •  时光说笑
    2021-02-05 10:02

    I had the same problem and found the answer here.
    Use that line to grant access to user with both roles:

    If you want to grant access to user with one of the listed roles, use:

    Also, you need to add ability to use SpEL in your security *.xml, add use-expressions="true" to tag.

提交回复
热议问题