美文网首页
sentinel配置 blockHandler为什么不生效?

sentinel配置 blockHandler为什么不生效?

作者: 大HHH山 | 来源:发表于2021-07-11 12:39 被阅读0次

测试的  http://localhost:8080/user/hello 可以生效,但是使用 @SentinelResouce 注解  http://locahost:8080/user/getUser?id=1  为什么不生效呢?不能进入 blockHandlerForGetUser 方法

跟着别人的视频看的,后来通过官网文档查看,原来是少配置:加上下边的配置,就完美解决了

相关文章

网友评论

      本文标题:sentinel配置 blockHandler为什么不生效?

      本文链接:https://www.haomeiwen.com/subject/zuskpltx.html