Use SmartInitializingSingleton instead of BeanPostProcessor to set up @LoadBalanced WebClient.Builder. (#1319)

This commit is contained in:
Olga Maciaszek-Sharma
2024-01-16 14:18:38 +01:00
committed by GitHub
parent 990809806e
commit c8fe5d38ef
6 changed files with 104 additions and 14 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) {