犯错原因,虽然在pom里面加入了feign但是,有先后顺序,不然会报错
在pom文件添加依赖:
<!-- 注意事项:必须要导入该包 注意有先后顺序 -->
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-feign</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
</dependency>