在实现openfeign的fallbackFactory<T>回调时,引入sentinel后报错:class org.springframework.cloud.openfeign.HystrixTa

问题:如题

在实现openfeign的fallbackFactory<T>回调时,引入sentinel后报错:class org.springframework.cloud.openfeign.HystrixTargeter$$EnhancerBySpringCGLIB$$bf1a2de1 cannot access its superclass org.springframework.cloud.openfeign.HystrixTargeter

解决

将spring-boot-devtools的scope改为test (推荐本方法)

参考:https://blog.csdn.net/qq_29025955/article/details/128870226
在实现openfeign的fallbackFactory<T>回调时,引入sentinel后报错:class org.springframework.cloud.openfeign.HystrixTa_第1张图片

在实现openfeign的fallbackFactory<T>回调时,引入sentinel后报错:class org.springframework.cloud.openfeign.HystrixTa_第2张图片

直接屏蔽/删除 spring-boot-devtools依赖

参考:https://blog.csdn.net/qq_40465489/article/details/119952321

你可能感兴趣的:(sentinel,openfeign,fallbackFactory,回调启动报错)