Error message
needs to be imported
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-loadbalancer</artifactId>
<version>3.1.3</version>
</dependency>
Of course you can also import
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-loadbalancer</artifactId>
<version>3.1.3</version>
</dependency>
The most important thing to pay attention to is the version issue. Please visit the github of springcloudAlibaba for relevant version correspondence issues