Open 379924269 opened 6 years ago
2018-10-17 10:01:52.631 ERROR 6664 --- [ctor-http-nio-1] .a.w.r.e.DefaultErrorWebExceptionHandler : Failed to handle request [GET http://localhost:4444/DEVICE_ADAPTTION/hellow]
org.springframework.cloud.gateway.support.NotFoundException: Unable to find instance for localhost at org.springframework.cloud.gateway.filter.LoadBalancerClientFilter.filter(LoadBalancerClientFilter.java:72) ~[spring-cloud-gateway-core-2.0.0.RC1.jar:2.0.0.RC1] at ......
问题是配置名称“device_adapttion”加入了“—”(下划线),配置如下 spring: application: name: device_adapttion 修改:可以吧“—”(下划线)改为“-”或去掉就可以了