Adding the security dependency

To add the newly required dependency, we will change the pom.xml of the planes microservice. We will add the following dependency:

<dependency>  <groupId>org.springframework.cloud</groupId>  <artifactId>spring-cloud-starter-oauth2</artifactId></dependency>

A piece of cake – our required dependency is configured properly.

In the next section, we will configure the application.yaml file.

Get Spring 5.0 By Example 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.