一、该问题的重现步骤是什么?
1.blade-gateway工程修改pom.xml依赖
org.springframework.cloudspring-cloud-starter-consul-discoveryorg.springframework.bootspring-boot-starter-actuator
2.bootstrap.yml添加consul服务配置
: : : : : 127.0.0.1 : : : : ${} : ${} : : : HTTP
3.启动blade-gateway工程,正常注册consul
4.启动其他微服务工程,未正常注册consul
5.Postman请求blade-desk接口失败异常
Failed to handle request [GET http://localhost:8081/blade-desk/notice/list]: 404 NOT_FOUND \"No static resource blade-desk/notice/list.\
二、你期待的结果是什么?实际看到的又是什么?
期望:启动blade-gateway和其他微服务,均可以正常注册consul注册中心,微服务应用API功能正常
问题:consul注册中心只能查到blade-gateway
三、你正在使用的是什么产品,什么版本?在什么操作系统上?
BladeX企业版,4.1.0.RELEASE,Windows开发环境
四、请提供详细的错误堆栈信息,这很重要。
{
"msg": "Failed to handle request [GET http://localhost:8081/blade-desk/notice/list]: 404 NOT_FOUND \"No static resource blade-desk/notice/list.\"",
"code": 404,
"data": null
}
五、若有更多详细信息,请在下面提供。
扫一扫访问 Blade技术社区 移动端