前端报错404,后端显示:[ntloop-thread-7] o.a.s.c.rest.locator.OperationLocator : locate path failed, status:Not Found, http method:GET, path:/, microserviceName:gateway
原因:
在resource-->application.yml中:
# This is web root for windows server, change this path according to where you put your source code
gateway:
webroot: /code/servicecomb-samples/bmi/webapp/src/main/resources/static
解决:
webroot路径配置不正确,改为本地放置servicecomb-samples路径。如:E:/test/servicecomb-samples/.... 应该为: /test/servicecomb-samples/....