采纳答案成功!
向帮助你的同学说点啥吧!感谢那些助人为乐的人
您好,得加上这一段
management: endpoints: web: exposure: include: '*'
这样才会激活/sentinel端点哈。
咳,找到错误i了。。。。。,谢谢老师
哪里的错误啊 和你一样 都配置上了 怎么还不对
1. 项目添加spring-boot-starter-actuator依赖 2. 项目添加spring-cloud-starter-alibaba-sentinel依赖 3. 项目添加了如上的配置 三个条件都具备,才能访问/actuator/sentinel
我也遇到这个情况,三个都加了,访问不到这个/actuator/sentinel 不过我这里用的 spring-cloud-alibaba-dependencies 用的2.1.0.RELEASE 是版本不一样配置变了吗?
登录后可查看更多问答,登录/注册
面向未来微服务:熟练掌握Spring Cloud Alibaba
1.0k 4
2.4k 1
3.3k 2
2.2k 3
4.5k 13
购课补贴联系客服咨询优惠详情
慕课网APP您的移动学习伙伴
扫描二维码关注慕课网微信公众号