Adding Spring Security dependency

We will start with adding the Spring Security dependencies to pom.xml:

    <dependency>       <groupId>org.springframework.security</groupId>       <artifactId>spring-security-web</artifactId>     </dependency>     <dependency>       <groupId>org.springframework.security</groupId>       <artifactId>spring-security-config</artifactId>     </dependency>

The dependencies added in are spring-security-web and spring-security-config.

Get Mastering Spring 5.0 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.