Zuul gateway import dependency error
Error message: Error is reported in the startup dependency annotation and the dependency cannot be found
Analyze the reason: check whether pom dependency is introduced
Reason for error reporting: No dependency is introduced. Let’s try to introduce dependency (the code is as follows)
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-netflix-zuul</artifactId>
</dependency>
The problem is solved after the dependency is introduced.