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


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

测试的 http://localhost:8080/user/hello 可以生效,但是使用 @SentinelResouce 注解 http://locahost:8080/user/getUser?id=1 为什么不生效呢?不能进入 blockHandlerForGetUser 方法
跟着别人的视频看的,后来通过官网文档查看,原来是少配置:加上下边的配置,就完美解决了
本文标题:sentinel配置 blockHandler为什么不生效?
本文链接:https://www.haomeiwen.com/subject/zuskpltx.html
网友评论