赞
踩
从原来的spring.redis变为spring.data.redis
老:
@ConfigurationProperties(prefix = "spring.redis")
public class RedisProperties {
新:
@ConfigurationProperties(prefix = "spring.data.redis")
public class RedisProperties {
从原来的feign.client变为spring.cloud.openfeign.client;
老:
@ConfigurationProperties("feign.client")
public class FeignClientProperties {
新:
@ConfigurationProperties("spring.cloud.openfeign.client")
public class FeignClientProperties {
从原来的feign.httpclient变为spring.cloud.openfeign.httpclient;
老:
@ConfigurationProperties(prefix = "feign.httpclient")
public class FeignHttpClientProperties {
新:
@ConfigurationProperties(prefix = "spring.cloud.openfeign.httpclient")
public class FeignHttpClientProperties {
1)、spring-cloud-starter-bootstrap
2)、spring-cloud-starter-loadbalancer,因为ribbon不默认和openfeign一起引入了,这里负载均衡选择的loadbalancer,当前其他的也可以。
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-bootstrap</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-loadbalancer</artifactId>
</dependency>
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。