spring cloud - 在设置servlet.context-path以后,Feign找不到路径

609 阅读1分钟

世界上并没有完美的程序,但是我们并不因此而沮丧,因为写程序就是一个不断追求完美的过程。

报错 :

feign.FeignException$NotFound: status 404 reading

解决 :

需要将context-path的路径也加入到feign的请求路径中