liubao68 commented on issue #2045: URL: https://github.com/apache/servicecomb-java-chassis/issues/2045#issuecomment-724681145
如果用 java-chassis , 是不会的, java-chassis 会根据运行环境自动判断增加 urlPrefix 或者 不增加, client不用感知。 出现 404 可能是你的服务并不是以 java-chassis 的方式注册的。 你可以试试直接通过 swagger 里面的 url 去访问provider的REST接口,看看是否404 (如果是 tomcat注册了 urlPrefix 的场景, url 应该是 swagger里面的 urlPrefix+url). 关于tomcat场景的集成参考: https://docs.servicecomb.io/java-chassis/zh_CN/using-java-chassis-in-spring-boot/introduction/ ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected]
