You need to add these dependencies to enable and use the features of Spring Security. Here are the dependencies that need to be added to the pom.xml file of the Spring project:
<dependency>
<groupId>org.springframework.security</groupId>
<artifactId>Spring_Security_SUB_Module_Name</artifactId>
<version>CURRENT_RELEASE_VERSION</version>
</dependency>
<dependency>
<groupId>org.springframework.security</groupId>
<artifactId>spring-security-core</artifactId>
<version>5.1.1.RELEASE</version>
</dependency>
You can find all the examples from this chapter on GitHub at https://github.com/PacktPublishing/Learn-Spring-for-Android-Application-Development/tree/master/Chapter05.