What should I do to be able to use #oauth2 security expressions on method level like on the example below?
@RequestMapping(value = \"email\", method = Reques
For me, it was the combination of this answer
// spring configuration class annotation @EnableGlobalMethodSecurity(prePostEnabled = true)
and this other answer
// gradle dependencuy compile('org.springframework.security.oauth.boot:spring-security-oauth2-autoconfigure:2.0.4.RELEASE')