![](https://img-blog.csdnimg.cn/20201014180756913.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
springcloud
文章平均质量分 63
xiaogezq0
这个作者很懒,什么都没留下…
展开
-
Spring Cloud Hoxton.SR1 gateway 与springboot 2.2.2.RELEASE不兼容
问题现象在启动Spring Cloud Hoxton.SR1 gateway 服务的时候无法启动,错误现象如下:***************************APPLICATION FAILED TO START***************************Description:An attempt was made to call a method that does not exist. The attempt was made from the followi..原创 2021-01-04 11:24:18 · 1110 阅读 · 1 评论 -
java.lang.IllegalStateException: No instances available for localhost
在SpringCloud的项目中,我们使用了自动配置的OAuth2RestTemplate,RestTemplate,但是在使用这些restTemplate的时候,url必须是服务的名称,如果要调用真实的域名或者ip的url,会有错误,如下: List<ServiceInstance> serviceInstances = discoveryClient.getInstances("****-SERVICE"); if(serviceInstances == null ||原创 2021-01-02 10:41:21 · 1533 阅读 · 0 评论