First, we need to add a dependency to the Zuul support from Spring Cloud to our UI application's pom.xml file:
<dependencies>...<dependency><groupId>org.springframework.cloud</groupId><artifactId>spring-cloud-starter-netflix-eureka-client</artifactId></dependency><dependency><groupId>org.springframework.cloud</groupId><artifactId>spring-cloud-starter-netflix-zuul</artifactId></dependency><dependency><groupId>org.springframework.boot</groupId><artifactId>spring-boot-starter-test</artifactId><scope>test</scope></dependency>...</dependencies>
As you can see in the Maven configuration file, we have added the Zuul library with spring-cloud-starter-netflix-zuul artifactId and org.springframework.cloud groupId. ...