To implement the security dependencies, you need to implement spring-security-core in pom.xml:
<dependency>
<groupId>org.springframework.security</groupId>
<artifactId>Spring_Security_SUB_Module_Name</artifactId>
<version>CURRENT_RELEASE_VERSION</version>
</dependency>
<!--here is an example of a security core sub-modules-->
<dependency>
<groupId>org.springframework.security</groupId>
<artifactId>spring-security-core</artifactId>
<version>5.1.1.RELEASE</version>
</dependency>