Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

springCloud gateway 异常:org.springframework.cloud.gateway.support.NotFoundException: Unable to find instance for localhost #1

Open
379924269 opened this issue Oct 17, 2018 · 2 comments

Comments

@379924269
Copy link
Owner

No description provided.

@379924269
Copy link
Owner Author

问题是配置名称“device_adapttion”加入了“—”(下划线),配置如下
spring:
application:
name: device_adapttion
修改:可以吧“—”(下划线)改为“-”或去掉就可以了

@379924269
Copy link
Owner Author

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
......

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant