- 服务没找到,请加入依赖
XML
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-loadbalancer</artifactId>
</dependency>
- 如果是 "URI is not absolute" , 将URL变成固定的字符串,例如
XML
private static final String sendMessageUrl = "http://service-provider/send";
//而不是注入的形式
@Value("${service-provider-url}")
private static final String sendMessageUrl
- 如果是 502 bad gateway 将代理服务全关闭,例如(clashx)