SpringCloud 配置可用区与区域 Consider defining a bean of type ‘org.springframework.web.client.RestTemplate’ in your configuration 错误

RestTemplate注入失败

解决办法,在feign启动类中加入下面红色的代码

可用区与区域功能,如果关闭了server1 它有一个心跳机制,等90秒后会刷新,变为server2。

更多推荐

关于springCloud 配置Consider defining a bean of type 'xxx' in your configu