Spring security access with multiple roles

后端 未结 3 1061
说谎
说谎 2021-02-02 14:49

I want to define access for some pages for user who has one of following roles (ROLE1 or ROLE2)

I\'m trying to configure this in my spring security xml file as following

3条回答
  •  情歌与酒
    2021-02-02 15:04

    If you are playing it with OAuth2, make sure you checkout this to solve your problems.

    http://lightweightyes.blogspot.in/2012/08/spring-security-expressions-not-working.html

    I just struggled hell lot of time trying all trial and errors.

提交回复
热议问题