Spring Cloud自己学习的时候遇到的一些问题

Spring Cloud自己学习的时候遇到的一些问题

Feign

  • pom.xml引起问题的配置部分如下:
1
2
3
4
5
6
7
8
9
10
11
<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-dependencies</artifactId>
<version>Brixton.RELEASE</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>
  • 报错内容
1
Attribute 'value' in annotation [org.springframework.cloud.netflix.feign.FeignClient] must be declared as an @AliasFor [serviceId], not [name].
  • 解决方法

将Spring Cloud版本改为 Brixton.SR5Camden.RELEASE ,即可解决此问题。

0%