Skip to content

Commit

Permalink
修复test
Browse files Browse the repository at this point in the history
  • Loading branch information
chengyouling committed Jan 8, 2025
1 parent 07eaeae commit 64d1aef
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ public String getRibbonLb(@RequestParam("serviceName") String serviceName) throw
if (!RIBBON_CLASS.equals(loadBalancerClient.getClass().getName())) {
return ERROR_RESPONSE;
}
final ClassLoader contextClassLoader = ClassLoaderManager.getContextClassLoaderOrUserClassLoader();
final ClassLoader contextClassLoader = Thread.currentThread().getContextClassLoader();
final Class<?> ribbonClientClass = contextClassLoader.loadClass(RIBBON_CLASS);
final Field clientField = ReflectionUtils.findField(ribbonClientClass, "clientFactory");
if (clientField == null) {
Expand Down

0 comments on commit 64d1aef

Please sign in to comment.