Use SmartInitializingSingleton instead of BeanPostProcessor to set up @LoadBalanced WebClient.Builder. (#1319)
This commit is contained in:
committed by
GitHub
parent
990809806e
commit
c8fe5d38ef
@@ -24,7 +24,7 @@ import org.springframework.core.env.Environment;
|
||||
public final class LoadBalancerEnvironmentPropertyUtils {
|
||||
|
||||
private LoadBalancerEnvironmentPropertyUtils() {
|
||||
throw new IllegalStateException("Should not instantiate a utility class");
|
||||
throw new UnsupportedOperationException("Cannot instantiate a utility class");
|
||||
}
|
||||
|
||||
public static boolean trueForClientOrDefault(Environment environment, String propertySuffix) {
|
||||
|
||||
Reference in New Issue
Block a user