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
A simpler solution would be to let Spring Boot autoconfigure. Adding the following dependency solved this for me:
compile('org.springframework.security.oauth.boot:spring-security-oauth2-autoconfigure:2.0.4.RELEASE')