Use SmartInitializingSingleton instead of BeanPostProcessor to set up @LoadBalanced WebClient.Builder.

This commit is contained in:
Olga MaciaszekSharma
2024-01-12 12:37:17 +01:00
parent 990809806e
commit bcbd9f00fe
5 changed files with 63 additions and 67 deletions

View File

@@ -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) {