Gradle dependencies
There are a number of optional dependencies that may be required, depending on what features you decide to use. Many of these dependencies are commented as Spring Boot includes them already in the starter parent. You will find that our build.gradle
file already includes all of the following dependencies:
//build.gradle // Required for JSR-250 based security: // JSR-250 Annotations compile ('javax.annotation:javax.annotation-api:1.3') // Already provided by Spring Boot // compile('cglib:cglib-nodep') // Already provided by Spring Boot // Required for protect-pointcut // compile('org.aspectj:aspectjweaver')
Integrating Spring Expression Language (SpEL)
Spring Security leverages Spring Expression Language (SpEL) integration in order to easily articulate various authorization requirements. If you recall, we have already looked at the use of SpEL in Chapter 2, Getting Started with Spring Security, when we defined our antMatcher()
method:
...