Whitelabel Error Page
This application has no explicit mapping for /error, so you are seeing this as a fallback.
There was an unexpected error (type=Not Found, status=404).
No message available
错误情况下的配置文件
zuul:
routes:
hehe:
url: http://localhost:8081
path: /user/**
解决方法1
添加 stripPrefix: false
默认情况下为true,也就是默认在转发请求之前,从请求中删除代理前缀
stripPrefix: false
url: http://localhost:8081
path: /user/**
解决方法2
因为有了上面的解决方法,也就存在另一个解决方法。那就是加上前缀
所以:
url: http://localhost:8081/user
path: /user/**