本文主要是介绍无法进入类 LoadBalancerInterceptor 中的 intercept方法,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
学习乐优商城
在pom中同时引入了
<dependency><groupId>org.springframework.cloud</groupId><artifactId>spring-cloud-starter-netflix-ribbon</artifactId>
</dependency>
<dependency><groupId>org.springframework.retry</groupId><artifactId>spring-retry</artifactId>
</dependency>
则出现无法进入类 LoadBalancerInterceptor 中的 intercept方法,原因可能是用了retry就不走ribbon那个拦截器了吧,没有验证
这篇关于无法进入类 LoadBalancerInterceptor 中的 intercept方法的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!