Added proxyBeanMethods = false to configuration classes. Fixes #623
This commit is contained in:
@@ -47,10 +47,10 @@ import org.springframework.context.annotation.Configuration;
|
||||
* @author Olga Maciaszek-Sharma
|
||||
* @author Tim Ysewyn
|
||||
*/
|
||||
@Configuration
|
||||
@Configuration(proxyBeanMethods = false)
|
||||
public class CommonsClientAutoConfiguration {
|
||||
|
||||
@Configuration
|
||||
@Configuration(proxyBeanMethods = false)
|
||||
@ConditionalOnClass(HealthIndicator.class)
|
||||
@EnableConfigurationProperties(DiscoveryClientHealthIndicatorProperties.class)
|
||||
@ConditionalOnBean(DiscoveryClient.class)
|
||||
@@ -84,7 +84,7 @@ public class CommonsClientAutoConfiguration {
|
||||
|
||||
}
|
||||
|
||||
@Configuration
|
||||
@Configuration(proxyBeanMethods = false)
|
||||
@ConditionalOnClass(Endpoint.class)
|
||||
@ConditionalOnProperty(value = "spring.cloud.features.enabled", matchIfMissing = true)
|
||||
protected static class ActuatorConfiguration {
|
||||
|
||||
@@ -40,10 +40,10 @@ import org.springframework.context.annotation.Configuration;
|
||||
* @author Tim Ysewyn
|
||||
* @since 2.2.0
|
||||
*/
|
||||
@Configuration
|
||||
@Configuration(proxyBeanMethods = false)
|
||||
public class ReactiveCommonsClientAutoConfiguration {
|
||||
|
||||
@Configuration
|
||||
@Configuration(proxyBeanMethods = false)
|
||||
@EnableConfigurationProperties(DiscoveryClientHealthIndicatorProperties.class)
|
||||
@ConditionalOnClass(ReactiveHealthIndicator.class)
|
||||
@ConditionalOnBean(ReactiveDiscoveryClient.class)
|
||||
|
||||
@@ -31,7 +31,7 @@ import org.springframework.context.annotation.Primary;
|
||||
* @author Biju Kunjummen
|
||||
*/
|
||||
|
||||
@Configuration
|
||||
@Configuration(proxyBeanMethods = false)
|
||||
@AutoConfigureBefore(SimpleDiscoveryClientAutoConfiguration.class)
|
||||
public class CompositeDiscoveryClientAutoConfiguration {
|
||||
|
||||
|
||||
@@ -31,7 +31,7 @@ import org.springframework.context.annotation.Primary;
|
||||
* @author Tim Ysewyn
|
||||
* @since 2.2.0
|
||||
*/
|
||||
@Configuration
|
||||
@Configuration(proxyBeanMethods = false)
|
||||
@ConditionalOnDiscoveryEnabled
|
||||
@ConditionalOnReactiveDiscoveryEnabled
|
||||
public class ReactiveCompositeDiscoveryClientAutoConfiguration {
|
||||
|
||||
@@ -45,7 +45,7 @@ import org.springframework.core.env.Environment;
|
||||
* instead}.
|
||||
* @author Dave Syer
|
||||
*/
|
||||
@Configuration
|
||||
@Configuration(proxyBeanMethods = false)
|
||||
@EnableConfigurationProperties
|
||||
@ConditionalOnMissingBean(DiscoveryClient.class)
|
||||
@Deprecated
|
||||
@@ -120,7 +120,7 @@ public class NoopDiscoveryClientAutoConfiguration
|
||||
|
||||
}
|
||||
|
||||
@Configuration
|
||||
@Configuration(proxyBeanMethods = false)
|
||||
@ConditionalOnClass(name = {
|
||||
"org.springframework.web.context.support.GenericWebApplicationContext",
|
||||
"org.springframework.boot.context.embedded.EmbeddedWebApplicationContext" })
|
||||
|
||||
@@ -38,7 +38,7 @@ import org.springframework.core.annotation.Order;
|
||||
*
|
||||
* @author Biju Kunjummen
|
||||
*/
|
||||
@Configuration
|
||||
@Configuration(proxyBeanMethods = false)
|
||||
@AutoConfigureBefore({ NoopDiscoveryClientAutoConfiguration.class,
|
||||
CommonsClientAutoConfiguration.class })
|
||||
public class SimpleDiscoveryClientAutoConfiguration
|
||||
|
||||
@@ -46,7 +46,7 @@ import org.springframework.core.annotation.Order;
|
||||
* @author Tim Ysewyn
|
||||
* @since 2.2.0
|
||||
*/
|
||||
@Configuration
|
||||
@Configuration(proxyBeanMethods = false)
|
||||
@ConditionalOnDiscoveryEnabled
|
||||
@ConditionalOnReactiveDiscoveryEnabled
|
||||
@EnableConfigurationProperties(DiscoveryClientHealthIndicatorProperties.class)
|
||||
@@ -101,7 +101,7 @@ public class SimpleReactiveDiscoveryClientAutoConfiguration
|
||||
}
|
||||
}
|
||||
|
||||
@Configuration
|
||||
@Configuration(proxyBeanMethods = false)
|
||||
@ConditionalOnClass(ReactiveHealthIndicator.class)
|
||||
protected static class HealthConfiguration {
|
||||
|
||||
|
||||
@@ -35,7 +35,7 @@ import org.springframework.context.annotation.Configuration;
|
||||
*
|
||||
* @author Oliver Gierke
|
||||
*/
|
||||
@Configuration
|
||||
@Configuration(proxyBeanMethods = false)
|
||||
@ConditionalOnBean(type = "org.springframework.cloud.client.hypermedia.RemoteResource")
|
||||
@EnableConfigurationProperties(CloudHypermediaProperties.class)
|
||||
public class CloudHypermediaAutoConfiguration {
|
||||
|
||||
@@ -34,12 +34,12 @@ import org.springframework.web.client.AsyncRestTemplate;
|
||||
*
|
||||
* @author Rob Worsnop
|
||||
*/
|
||||
@Configuration
|
||||
@Configuration(proxyBeanMethods = false)
|
||||
@ConditionalOnBean(LoadBalancerClient.class)
|
||||
@ConditionalOnClass(AsyncRestTemplate.class)
|
||||
public class AsyncLoadBalancerAutoConfiguration {
|
||||
|
||||
@Configuration
|
||||
@Configuration(proxyBeanMethods = false)
|
||||
static class AsyncRestTemplateCustomizerConfig {
|
||||
|
||||
@LoadBalanced
|
||||
@@ -63,7 +63,7 @@ public class AsyncLoadBalancerAutoConfiguration {
|
||||
|
||||
}
|
||||
|
||||
@Configuration
|
||||
@Configuration(proxyBeanMethods = false)
|
||||
static class LoadBalancerInterceptorConfig {
|
||||
|
||||
@Bean
|
||||
|
||||
@@ -42,7 +42,7 @@ import org.springframework.web.client.RestTemplate;
|
||||
* @author Will Tran
|
||||
* @author Gang Li
|
||||
*/
|
||||
@Configuration
|
||||
@Configuration(proxyBeanMethods = false)
|
||||
@ConditionalOnClass(RestTemplate.class)
|
||||
@ConditionalOnBean(LoadBalancerClient.class)
|
||||
@EnableConfigurationProperties(LoadBalancerRetryProperties.class)
|
||||
@@ -74,7 +74,7 @@ public class LoadBalancerAutoConfiguration {
|
||||
return new LoadBalancerRequestFactory(loadBalancerClient, this.transformers);
|
||||
}
|
||||
|
||||
@Configuration
|
||||
@Configuration(proxyBeanMethods = false)
|
||||
@ConditionalOnMissingClass("org.springframework.retry.support.RetryTemplate")
|
||||
static class LoadBalancerInterceptorConfig {
|
||||
|
||||
@@ -102,7 +102,7 @@ public class LoadBalancerAutoConfiguration {
|
||||
/**
|
||||
* Auto configuration for retry mechanism.
|
||||
*/
|
||||
@Configuration
|
||||
@Configuration(proxyBeanMethods = false)
|
||||
@ConditionalOnClass(RetryTemplate.class)
|
||||
public static class RetryAutoConfiguration {
|
||||
|
||||
@@ -118,7 +118,7 @@ public class LoadBalancerAutoConfiguration {
|
||||
/**
|
||||
* Auto configuration for retry intercepting mechanism.
|
||||
*/
|
||||
@Configuration
|
||||
@Configuration(proxyBeanMethods = false)
|
||||
@ConditionalOnClass(RetryTemplate.class)
|
||||
public static class RetryInterceptorAutoConfiguration {
|
||||
|
||||
|
||||
@@ -43,7 +43,7 @@ import org.springframework.web.reactive.function.client.WebClient;
|
||||
* @author Olga Maciaszek-Sharma
|
||||
* @since 2.2.0
|
||||
*/
|
||||
@Configuration
|
||||
@Configuration(proxyBeanMethods = false)
|
||||
@ConditionalOnClass(WebClient.class)
|
||||
@Conditional(LoadBalancerBeanPostProcessorAutoConfiguration.OnAnyLoadBalancerImplementationPresentCondition.class)
|
||||
public class LoadBalancerBeanPostProcessorAutoConfiguration {
|
||||
@@ -56,7 +56,7 @@ public class LoadBalancerBeanPostProcessorAutoConfiguration {
|
||||
deferringExchangeFilterFunction, context);
|
||||
}
|
||||
|
||||
@Configuration
|
||||
@Configuration(proxyBeanMethods = false)
|
||||
@Conditional(ReactorLoadBalancerClientAutoConfiguration.OnNoRibbonDefaultCondition.class)
|
||||
@ConditionalOnBean(ReactiveLoadBalancer.Factory.class)
|
||||
protected static class ReactorDeferringLoadBalancerFilterConfig {
|
||||
@@ -71,7 +71,7 @@ public class LoadBalancerBeanPostProcessorAutoConfiguration {
|
||||
|
||||
}
|
||||
|
||||
@Configuration
|
||||
@Configuration(proxyBeanMethods = false)
|
||||
@ConditionalOnBean(LoadBalancerClient.class)
|
||||
@AutoConfigureAfter(ReactorDeferringLoadBalancerFilterConfig.class)
|
||||
@Deprecated
|
||||
|
||||
@@ -30,7 +30,7 @@ import org.springframework.web.reactive.function.client.WebClient;
|
||||
* @author Spencer Gibb
|
||||
* @author Olga Maciaszek-Sharma
|
||||
*/
|
||||
@Configuration
|
||||
@Configuration(proxyBeanMethods = false)
|
||||
@ConditionalOnClass(WebClient.class)
|
||||
@ConditionalOnBean(LoadBalancerClient.class)
|
||||
@AutoConfigureAfter(ReactorLoadBalancerClientAutoConfiguration.class)
|
||||
|
||||
@@ -40,7 +40,7 @@ import org.springframework.web.reactive.function.client.WebClient;
|
||||
* @author Olga Maciaszek-Sharma
|
||||
* @since 2.2.0
|
||||
*/
|
||||
@Configuration
|
||||
@Configuration(proxyBeanMethods = false)
|
||||
@ConditionalOnClass(WebClient.class)
|
||||
@ConditionalOnBean(ReactiveLoadBalancer.Factory.class)
|
||||
public class ReactorLoadBalancerClientAutoConfiguration {
|
||||
@@ -54,7 +54,7 @@ public class ReactorLoadBalancerClientAutoConfiguration {
|
||||
return new ReactorLoadBalancerClientRibbonWarnLogger();
|
||||
}
|
||||
|
||||
@Configuration
|
||||
@Configuration(proxyBeanMethods = false)
|
||||
@Conditional(OnNoRibbonDefaultCondition.class)
|
||||
protected static class ReactorLoadBalancerExchangeFilterFunctionConfig {
|
||||
|
||||
|
||||
@@ -26,7 +26,7 @@ import org.springframework.context.annotation.Import;
|
||||
/**
|
||||
* @author Spencer Gibb
|
||||
*/
|
||||
@Configuration
|
||||
@Configuration(proxyBeanMethods = false)
|
||||
@Import(AutoServiceRegistrationConfiguration.class)
|
||||
@ConditionalOnProperty(value = "spring.cloud.service-registry.auto-registration.enabled",
|
||||
matchIfMissing = true)
|
||||
|
||||
@@ -23,7 +23,7 @@ import org.springframework.context.annotation.Configuration;
|
||||
/**
|
||||
* @author Spencer Gibb
|
||||
*/
|
||||
@Configuration
|
||||
@Configuration(proxyBeanMethods = false)
|
||||
@EnableConfigurationProperties(AutoServiceRegistrationProperties.class)
|
||||
@ConditionalOnProperty(value = "spring.cloud.service-registry.auto-registration.enabled",
|
||||
matchIfMissing = true)
|
||||
|
||||
@@ -28,7 +28,7 @@ import org.springframework.context.annotation.Configuration;
|
||||
/**
|
||||
* @author Spencer Gibb
|
||||
*/
|
||||
@Configuration
|
||||
@Configuration(proxyBeanMethods = false)
|
||||
public class ServiceRegistryAutoConfiguration {
|
||||
|
||||
@ConditionalOnBean(ServiceRegistry.class)
|
||||
|
||||
@@ -29,10 +29,10 @@ import org.springframework.context.annotation.Configuration;
|
||||
/**
|
||||
* @author Ryan Baxter
|
||||
*/
|
||||
@Configuration
|
||||
@Configuration(proxyBeanMethods = false)
|
||||
public class HttpClientConfiguration {
|
||||
|
||||
@Configuration
|
||||
@Configuration(proxyBeanMethods = false)
|
||||
@ConditionalOnProperty(name = "spring.cloud.httpclientfactories.apache.enabled",
|
||||
matchIfMissing = true)
|
||||
@ConditionalOnClass(HttpClient.class)
|
||||
@@ -59,7 +59,7 @@ public class HttpClientConfiguration {
|
||||
|
||||
}
|
||||
|
||||
@Configuration
|
||||
@Configuration(proxyBeanMethods = false)
|
||||
@ConditionalOnProperty(name = "spring.cloud.httpclientfactories.ok.enabled",
|
||||
matchIfMissing = true)
|
||||
@ConditionalOnClass(OkHttpClient.class)
|
||||
|
||||
@@ -26,7 +26,7 @@ import org.springframework.context.annotation.Configuration;
|
||||
/**
|
||||
* @author Spencer Gibb
|
||||
*/
|
||||
@Configuration
|
||||
@Configuration(proxyBeanMethods = false)
|
||||
@ConditionalOnProperty(value = "spring.cloud.util.enabled", matchIfMissing = true)
|
||||
@AutoConfigureOrder(0)
|
||||
@EnableConfigurationProperties
|
||||
|
||||
@@ -32,7 +32,7 @@ import org.springframework.context.annotation.Configuration;
|
||||
* @author Marcin Grzejszczak
|
||||
* @since 1.3.6
|
||||
*/
|
||||
@Configuration
|
||||
@Configuration(proxyBeanMethods = false)
|
||||
@ConditionalOnProperty(value = "spring.cloud.compatibility-verifier.enabled",
|
||||
matchIfMissing = true)
|
||||
@AutoConfigureOrder(0)
|
||||
|
||||
@@ -68,7 +68,7 @@ public class FeaturesEndpointTests {
|
||||
return new FeaturesEndpoint.Feature(name, type.getCanonicalName(), null, null);
|
||||
}
|
||||
|
||||
@Configuration
|
||||
@Configuration(proxyBeanMethods = false)
|
||||
public static class FeaturesConfig {
|
||||
|
||||
@Bean
|
||||
@@ -87,7 +87,7 @@ public class FeaturesEndpointTests {
|
||||
|
||||
}
|
||||
|
||||
@Configuration
|
||||
@Configuration(proxyBeanMethods = false)
|
||||
@EnableConfigurationProperties
|
||||
public static class Config {
|
||||
|
||||
|
||||
@@ -60,7 +60,7 @@ public class AutoRegisterPropertyFalseTests {
|
||||
}
|
||||
|
||||
@EnableAutoConfiguration
|
||||
@Configuration
|
||||
@Configuration(proxyBeanMethods = false)
|
||||
public static class App {
|
||||
|
||||
}
|
||||
|
||||
@@ -59,7 +59,7 @@ public class EnableDiscoveryClientAutoRegisterFalseTests {
|
||||
}
|
||||
|
||||
@EnableAutoConfiguration
|
||||
@Configuration
|
||||
@Configuration(proxyBeanMethods = false)
|
||||
@EnableDiscoveryClient(autoRegister = false)
|
||||
public static class App {
|
||||
|
||||
|
||||
@@ -49,7 +49,7 @@ public class EnableDiscoveryClientMissingImplTests {
|
||||
}
|
||||
|
||||
@EnableAutoConfiguration
|
||||
@Configuration
|
||||
@Configuration(proxyBeanMethods = false)
|
||||
@EnableDiscoveryClient
|
||||
// this will fail with @EnableDiscoveryClient and no implementation (nothing in
|
||||
// spring.factories)
|
||||
|
||||
@@ -65,7 +65,7 @@ public class CompositeDiscoveryClientAutoConfigurationTests {
|
||||
}
|
||||
|
||||
@EnableAutoConfiguration
|
||||
@Configuration
|
||||
@Configuration(proxyBeanMethods = false)
|
||||
public static class Config {
|
||||
|
||||
@Bean
|
||||
|
||||
@@ -34,7 +34,7 @@ import static java.util.Collections.singletonList;
|
||||
* @author Olga Maciaszek-Sharma
|
||||
* @author Tim Ysewyn
|
||||
*/
|
||||
@Configuration
|
||||
@Configuration(proxyBeanMethods = false)
|
||||
@EnableAutoConfiguration
|
||||
public class CompositeDiscoveryClientTestsConfig {
|
||||
|
||||
|
||||
@@ -87,7 +87,7 @@ public class DiscoveryClientHealthIndicatorTests {
|
||||
return status;
|
||||
}
|
||||
|
||||
@Configuration
|
||||
@Configuration(proxyBeanMethods = false)
|
||||
@EnableConfigurationProperties
|
||||
public static class Config {
|
||||
|
||||
|
||||
@@ -47,7 +47,7 @@ public class DiscoveryClientAutoConfigurationDefaultTests {
|
||||
}
|
||||
|
||||
@EnableAutoConfiguration
|
||||
@Configuration
|
||||
@Configuration(proxyBeanMethods = false)
|
||||
public static class Config {
|
||||
|
||||
}
|
||||
|
||||
@@ -50,7 +50,7 @@ public class ReactiveSimpleDiscoveryPropertiesAutoConfigurationTests {
|
||||
}
|
||||
|
||||
@EnableAutoConfiguration
|
||||
@Configuration
|
||||
@Configuration(proxyBeanMethods = false)
|
||||
public static class Config {
|
||||
|
||||
}
|
||||
|
||||
@@ -49,7 +49,7 @@ public class ServletSimpleDiscoveryPropertiesAutoConfigurationTests {
|
||||
}
|
||||
|
||||
@EnableAutoConfiguration
|
||||
@Configuration
|
||||
@Configuration(proxyBeanMethods = false)
|
||||
public static class Config {
|
||||
|
||||
}
|
||||
|
||||
@@ -93,7 +93,7 @@ public class SimpleDiscoveryClientPropertiesMappingTests {
|
||||
then(this.discoveryClient.getInstances("nonexistent")).isEmpty();
|
||||
}
|
||||
|
||||
@Configuration
|
||||
@Configuration(proxyBeanMethods = false)
|
||||
@EnableAutoConfiguration
|
||||
public static class SampleConfig {
|
||||
|
||||
|
||||
@@ -87,13 +87,13 @@ public class CloudHypermediaAutoConfigurationIntegrationTests {
|
||||
}
|
||||
}
|
||||
|
||||
@Configuration
|
||||
@Configuration(proxyBeanMethods = false)
|
||||
@EnableAutoConfiguration
|
||||
static class Config {
|
||||
|
||||
}
|
||||
|
||||
@Configuration
|
||||
@Configuration(proxyBeanMethods = false)
|
||||
@EnableAutoConfiguration
|
||||
static class ConfigWithRemoteResource {
|
||||
|
||||
|
||||
@@ -84,7 +84,7 @@ public abstract class AbstractLoadBalancerAutoConfigurationTests {
|
||||
.sources(config, LoadBalancerAutoConfiguration.class).run();
|
||||
}
|
||||
|
||||
@Configuration
|
||||
@Configuration(proxyBeanMethods = false)
|
||||
protected static class OneRestTemplate {
|
||||
|
||||
@LoadBalanced
|
||||
@@ -100,7 +100,7 @@ public abstract class AbstractLoadBalancerAutoConfigurationTests {
|
||||
|
||||
}
|
||||
|
||||
@Configuration
|
||||
@Configuration(proxyBeanMethods = false)
|
||||
protected static class TwoRestTemplates {
|
||||
|
||||
@Primary
|
||||
@@ -120,7 +120,7 @@ public abstract class AbstractLoadBalancerAutoConfigurationTests {
|
||||
return new NoopLoadBalancerClient();
|
||||
}
|
||||
|
||||
@Configuration
|
||||
@Configuration(proxyBeanMethods = false)
|
||||
protected static class Two {
|
||||
|
||||
@Autowired
|
||||
|
||||
@@ -92,7 +92,7 @@ public class AsyncLoadBalancerAutoConfigurationTests {
|
||||
.sources(config, AsyncLoadBalancerAutoConfiguration.class).run();
|
||||
}
|
||||
|
||||
@Configuration
|
||||
@Configuration(proxyBeanMethods = false)
|
||||
protected static class OneRestTemplate {
|
||||
|
||||
@LoadBalanced
|
||||
@@ -114,7 +114,7 @@ public class AsyncLoadBalancerAutoConfigurationTests {
|
||||
|
||||
}
|
||||
|
||||
@Configuration
|
||||
@Configuration(proxyBeanMethods = false)
|
||||
protected static class TwoRestTemplates {
|
||||
|
||||
@Primary
|
||||
@@ -134,7 +134,7 @@ public class AsyncLoadBalancerAutoConfigurationTests {
|
||||
return new NoopLoadBalancerClient();
|
||||
}
|
||||
|
||||
@Configuration
|
||||
@Configuration(proxyBeanMethods = false)
|
||||
protected static class Two {
|
||||
|
||||
@Autowired
|
||||
|
||||
@@ -133,7 +133,7 @@ public class LoadBalancerRequestFactoryConfigurationTests {
|
||||
.isEqualTo(this.transformedRequest2);
|
||||
}
|
||||
|
||||
@Configuration
|
||||
@Configuration(proxyBeanMethods = false)
|
||||
static class Transformer {
|
||||
|
||||
@Bean
|
||||
@@ -148,7 +148,7 @@ public class LoadBalancerRequestFactoryConfigurationTests {
|
||||
|
||||
}
|
||||
|
||||
@Configuration
|
||||
@Configuration(proxyBeanMethods = false)
|
||||
static class TransformersAreOrdered {
|
||||
|
||||
@Bean
|
||||
@@ -169,7 +169,7 @@ public class LoadBalancerRequestFactoryConfigurationTests {
|
||||
|
||||
}
|
||||
|
||||
@Configuration
|
||||
@Configuration(proxyBeanMethods = false)
|
||||
static class NoTransformer {
|
||||
|
||||
@Bean
|
||||
|
||||
@@ -53,7 +53,7 @@ public class AbstractAutoServiceRegistrationMgmtDisabledTests {
|
||||
}
|
||||
|
||||
@EnableAutoConfiguration
|
||||
@Configuration
|
||||
@Configuration(proxyBeanMethods = false)
|
||||
public static class Config {
|
||||
|
||||
@Bean
|
||||
|
||||
@@ -93,7 +93,7 @@ public class AbstractAutoServiceRegistrationTests {
|
||||
}
|
||||
|
||||
@EnableAutoConfiguration
|
||||
@Configuration
|
||||
@Configuration(proxyBeanMethods = false)
|
||||
public static class Config {
|
||||
|
||||
@Bean
|
||||
|
||||
@@ -94,7 +94,7 @@ public class AutoServiceRegistrationAutoConfigurationTests {
|
||||
return context;
|
||||
}
|
||||
|
||||
@Configuration
|
||||
@Configuration(proxyBeanMethods = false)
|
||||
static class HasAutoServiceRegistrationConfiguration {
|
||||
|
||||
@Bean
|
||||
|
||||
@@ -50,7 +50,7 @@ public class ServiceRegistryAutoConfigurationTests {
|
||||
}
|
||||
}
|
||||
|
||||
@Configuration
|
||||
@Configuration(proxyBeanMethods = false)
|
||||
protected static class TestConfig {
|
||||
|
||||
}
|
||||
|
||||
@@ -67,7 +67,7 @@ public class ServiceRegistryEndpointNoRegistrationTests {
|
||||
WebMvcAutoConfiguration.class
|
||||
// ManagementServerPropertiesAutoConfiguration.class
|
||||
})
|
||||
@Configuration
|
||||
@Configuration(proxyBeanMethods = false)
|
||||
public static class TestConfiguration {
|
||||
|
||||
@Bean
|
||||
|
||||
@@ -50,7 +50,7 @@ public class CustomHttpClientBuilderConfigurationTests {
|
||||
|
||||
}
|
||||
|
||||
@Configuration
|
||||
@Configuration(proxyBeanMethods = false)
|
||||
@EnableAutoConfiguration
|
||||
class CustomHttpClientBuilderApplication {
|
||||
|
||||
@@ -58,7 +58,7 @@ class CustomHttpClientBuilderApplication {
|
||||
SpringApplication.run(MyApplication.class, args);
|
||||
}
|
||||
|
||||
@Configuration
|
||||
@Configuration(proxyBeanMethods = false)
|
||||
@AutoConfigureBefore(HttpClientConfiguration.class)
|
||||
static class MyConfig {
|
||||
|
||||
|
||||
@@ -88,7 +88,7 @@ public class CustomHttpClientConfigurationTests {
|
||||
|
||||
}
|
||||
|
||||
@Configuration
|
||||
@Configuration(proxyBeanMethods = false)
|
||||
@EnableAutoConfiguration
|
||||
class CustomApplication {
|
||||
|
||||
@@ -96,7 +96,7 @@ class CustomApplication {
|
||||
SpringApplication.run(MyApplication.class, args);
|
||||
}
|
||||
|
||||
@Configuration
|
||||
@Configuration(proxyBeanMethods = false)
|
||||
static class MyConfig {
|
||||
|
||||
@Bean
|
||||
|
||||
@@ -60,7 +60,7 @@ public class CustomOkHttpClientBuilderConfigurationTests {
|
||||
|
||||
}
|
||||
|
||||
@Configuration
|
||||
@Configuration(proxyBeanMethods = false)
|
||||
@EnableAutoConfiguration
|
||||
class CustomOkHttpClientBuilderApplication {
|
||||
|
||||
@@ -68,7 +68,7 @@ class CustomOkHttpClientBuilderApplication {
|
||||
SpringApplication.run(MyApplication.class, args);
|
||||
}
|
||||
|
||||
@Configuration
|
||||
@Configuration(proxyBeanMethods = false)
|
||||
static class MyConfig {
|
||||
|
||||
@Bean
|
||||
|
||||
@@ -80,7 +80,7 @@ public class DefaultHttpClientConfigurationTests {
|
||||
|
||||
}
|
||||
|
||||
@Configuration
|
||||
@Configuration(proxyBeanMethods = false)
|
||||
@EnableAutoConfiguration
|
||||
class MyApplication {
|
||||
|
||||
|
||||
@@ -43,7 +43,7 @@ public class CompatibilityVerifierAutoConfigurationTests {
|
||||
then(this.myMismatchVerifier.called).isTrue();
|
||||
}
|
||||
|
||||
@Configuration
|
||||
@Configuration(proxyBeanMethods = false)
|
||||
@EnableAutoConfiguration
|
||||
static class TestConfiguration {
|
||||
|
||||
|
||||
@@ -42,7 +42,7 @@ public class CompatibilityVerifierDisabledAutoConfigurationTests {
|
||||
then(this.compositeCompatibilityVerifier).isNull();
|
||||
}
|
||||
|
||||
@Configuration
|
||||
@Configuration(proxyBeanMethods = false)
|
||||
@EnableAutoConfiguration
|
||||
static class TestConfiguration {
|
||||
|
||||
|
||||
@@ -50,7 +50,7 @@ public class CompatibilityVerifierFailureAutoConfigurationTests {
|
||||
}
|
||||
}
|
||||
|
||||
@Configuration
|
||||
@Configuration(proxyBeanMethods = false)
|
||||
@EnableAutoConfiguration
|
||||
static class TestConfiguration {
|
||||
|
||||
|
||||
@@ -218,7 +218,7 @@ public class RefreshScopeIntegrationTests {
|
||||
|
||||
}
|
||||
|
||||
@Configuration
|
||||
@Configuration(proxyBeanMethods = false)
|
||||
@EnableConfigurationProperties(TestProperties.class)
|
||||
@EnableAutoConfiguration
|
||||
protected static class TestConfiguration {
|
||||
|
||||
@@ -33,7 +33,7 @@ import org.springframework.context.annotation.Configuration;
|
||||
*
|
||||
* @author Dave Syer
|
||||
*/
|
||||
@Configuration
|
||||
@Configuration(proxyBeanMethods = false)
|
||||
@ConditionalOnBean(ConfigurationPropertiesBindingPostProcessor.class)
|
||||
public class ConfigurationPropertiesRebinderAutoConfiguration
|
||||
implements ApplicationContextAware, SmartInitializingSingleton {
|
||||
|
||||
@@ -32,7 +32,7 @@ import org.springframework.core.env.ConfigurableEnvironment;
|
||||
* @author Dave Syer
|
||||
*
|
||||
*/
|
||||
@Configuration
|
||||
@Configuration(proxyBeanMethods = false)
|
||||
@AutoConfigureAfter(WebMvcAutoConfiguration.class)
|
||||
public class LifecycleMvcEndpointAutoConfiguration {
|
||||
|
||||
|
||||
@@ -61,7 +61,7 @@ import org.springframework.util.StringUtils;
|
||||
* @author Dave Syer
|
||||
* @author Venil Noronha
|
||||
*/
|
||||
@Configuration
|
||||
@Configuration(proxyBeanMethods = false)
|
||||
@ConditionalOnClass(RefreshScope.class)
|
||||
@ConditionalOnProperty(name = RefreshAutoConfiguration.REFRESH_SCOPE_ENABLED,
|
||||
matchIfMissing = true)
|
||||
@@ -107,7 +107,7 @@ public class RefreshAutoConfiguration {
|
||||
return new RefreshEventListener(contextRefresher);
|
||||
}
|
||||
|
||||
@Configuration
|
||||
@Configuration(proxyBeanMethods = false)
|
||||
@ConditionalOnClass(name = "javax.persistence.EntityManagerFactory")
|
||||
protected static class JpaInvokerConfiguration implements LoadTimeWeaverAware {
|
||||
|
||||
|
||||
@@ -44,7 +44,7 @@ import org.springframework.integration.monitor.IntegrationMBeanExporter;
|
||||
* @author Spencer Gibb
|
||||
* @author Venil Noronha
|
||||
*/
|
||||
@Configuration
|
||||
@Configuration(proxyBeanMethods = false)
|
||||
@ConditionalOnClass({ EndpointAutoConfiguration.class, Health.class })
|
||||
@AutoConfigureAfter({ LifecycleMvcEndpointAutoConfiguration.class,
|
||||
RefreshAutoConfiguration.class })
|
||||
@@ -62,7 +62,7 @@ public class RefreshEndpointAutoConfiguration {
|
||||
return new RefreshScopeHealthIndicator(scope, rebinder);
|
||||
}
|
||||
|
||||
@Configuration
|
||||
@Configuration(proxyBeanMethods = false)
|
||||
@ConditionalOnBean(PropertySourceBootstrapConfiguration.class)
|
||||
protected static class RefreshEndpointConfiguration {
|
||||
|
||||
@@ -78,7 +78,7 @@ public class RefreshEndpointAutoConfiguration {
|
||||
|
||||
}
|
||||
|
||||
@Configuration
|
||||
@Configuration(proxyBeanMethods = false)
|
||||
@ConditionalOnClass(IntegrationMBeanExporter.class)
|
||||
class RestartEndpointWithIntegrationConfiguration {
|
||||
|
||||
@@ -98,7 +98,7 @@ class RestartEndpointWithIntegrationConfiguration {
|
||||
|
||||
}
|
||||
|
||||
@Configuration
|
||||
@Configuration(proxyBeanMethods = false)
|
||||
@ConditionalOnMissingClass("org.springframework.integration.monitor.IntegrationMBeanExporter")
|
||||
class RestartEndpointWithoutIntegrationConfiguration {
|
||||
|
||||
@@ -111,7 +111,7 @@ class RestartEndpointWithoutIntegrationConfiguration {
|
||||
|
||||
}
|
||||
|
||||
@Configuration
|
||||
@Configuration(proxyBeanMethods = false)
|
||||
class PauseResumeEndpointsConfiguration {
|
||||
|
||||
@Bean
|
||||
|
||||
@@ -42,7 +42,7 @@ import org.springframework.core.env.Environment;
|
||||
* @author Stephane Nicoll
|
||||
* @since 2.0.0
|
||||
*/
|
||||
@Configuration
|
||||
@Configuration(proxyBeanMethods = false)
|
||||
@ConditionalOnClass({ EnvironmentEndpoint.class, EnvironmentEndpointProperties.class })
|
||||
@ConditionalOnBean(EnvironmentManager.class)
|
||||
@AutoConfigureBefore(EnvironmentEndpointAutoConfiguration.class)
|
||||
|
||||
@@ -24,7 +24,7 @@ import org.springframework.context.annotation.Import;
|
||||
*
|
||||
* @author Spencer Gibb
|
||||
*/
|
||||
@Configuration
|
||||
@Configuration(proxyBeanMethods = false)
|
||||
@Import(BootstrapImportSelector.class)
|
||||
public class BootstrapImportSelectorConfiguration {
|
||||
|
||||
|
||||
@@ -57,7 +57,7 @@ import org.springframework.util.StringUtils;
|
||||
* @author Dave Syer
|
||||
*
|
||||
*/
|
||||
@Configuration
|
||||
@Configuration(proxyBeanMethods = false)
|
||||
@EnableConfigurationProperties(PropertySourceBootstrapProperties.class)
|
||||
public class PropertySourceBootstrapConfiguration implements
|
||||
ApplicationContextInitializer<ConfigurableApplicationContext>, Ordered {
|
||||
|
||||
@@ -40,7 +40,7 @@ import org.springframework.util.StringUtils;
|
||||
* @author Dave Syer
|
||||
*
|
||||
*/
|
||||
@Configuration
|
||||
@Configuration(proxyBeanMethods = false)
|
||||
@ConditionalOnClass({ TextEncryptor.class })
|
||||
@EnableConfigurationProperties({ KeyProperties.class })
|
||||
public class EncryptionBootstrapConfiguration {
|
||||
@@ -62,7 +62,7 @@ public class EncryptionBootstrapConfiguration {
|
||||
return listener;
|
||||
}
|
||||
|
||||
@Configuration
|
||||
@Configuration(proxyBeanMethods = false)
|
||||
@Conditional(KeyCondition.class)
|
||||
@ConditionalOnClass(RsaSecretEncryptor.class)
|
||||
@EnableConfigurationProperties({ RsaProperties.class })
|
||||
@@ -97,7 +97,7 @@ public class EncryptionBootstrapConfiguration {
|
||||
|
||||
}
|
||||
|
||||
@Configuration
|
||||
@Configuration(proxyBeanMethods = false)
|
||||
@Conditional(KeyCondition.class)
|
||||
@ConditionalOnMissingClass("org.springframework.security.rsa.crypto.RsaSecretEncryptor")
|
||||
protected static class VanillaEncryptionConfiguration {
|
||||
|
||||
@@ -253,7 +253,7 @@ public class ContextRefresher {
|
||||
}
|
||||
}
|
||||
|
||||
@Configuration
|
||||
@Configuration(proxyBeanMethods = false)
|
||||
protected static class Empty {
|
||||
|
||||
}
|
||||
|
||||
@@ -166,7 +166,7 @@ public class LifecycleMvcAutoConfigurationTests {
|
||||
}
|
||||
}
|
||||
|
||||
@Configuration
|
||||
@Configuration(proxyBeanMethods = false)
|
||||
@EnableAutoConfiguration
|
||||
static class Config {
|
||||
|
||||
|
||||
@@ -55,7 +55,7 @@ public class RefreshAutoConfigurationClassPathTests {
|
||||
}
|
||||
}
|
||||
|
||||
@Configuration
|
||||
@Configuration(proxyBeanMethods = false)
|
||||
@EnableAutoConfiguration
|
||||
static class Config {
|
||||
|
||||
|
||||
@@ -59,7 +59,7 @@ public class RefreshAutoConfigurationMoreClassPathTests {
|
||||
}
|
||||
}
|
||||
|
||||
@Configuration
|
||||
@Configuration(proxyBeanMethods = false)
|
||||
@EnableAutoConfiguration
|
||||
static class Config {
|
||||
|
||||
|
||||
@@ -85,7 +85,7 @@ public class RefreshAutoConfigurationTests {
|
||||
}
|
||||
}
|
||||
|
||||
@Configuration
|
||||
@Configuration(proxyBeanMethods = false)
|
||||
@EnableAutoConfiguration(exclude = DataSourceAutoConfiguration.class)
|
||||
@EnableConfigurationProperties(ConfigProps.class)
|
||||
static class Config {
|
||||
|
||||
@@ -43,7 +43,7 @@ public class BootstrapDisabledAutoConfigurationIntegrationTests {
|
||||
}
|
||||
|
||||
@EnableAutoConfiguration
|
||||
@Configuration
|
||||
@Configuration(proxyBeanMethods = false)
|
||||
protected static class Application {
|
||||
|
||||
}
|
||||
|
||||
@@ -59,7 +59,7 @@ public class BootstrapOrderingAutoConfigurationIntegrationTests {
|
||||
}
|
||||
|
||||
@EnableAutoConfiguration
|
||||
@Configuration
|
||||
@Configuration(proxyBeanMethods = false)
|
||||
protected static class Application {
|
||||
|
||||
}
|
||||
|
||||
@@ -63,12 +63,12 @@ public class BootstrapOrderingCustomPropertySourceIntegrationTests {
|
||||
}
|
||||
|
||||
@EnableAutoConfiguration
|
||||
@Configuration
|
||||
@Configuration(proxyBeanMethods = false)
|
||||
protected static class Application {
|
||||
|
||||
}
|
||||
|
||||
@Configuration
|
||||
@Configuration(proxyBeanMethods = false)
|
||||
// This is added to bootstrap context as a source in bootstrap.properties
|
||||
protected static class PropertySourceConfiguration implements PropertySourceLocator {
|
||||
|
||||
|
||||
@@ -55,7 +55,7 @@ public class BootstrapOrderingSpringApplicationJsonIntegrationTests {
|
||||
}
|
||||
|
||||
@EnableAutoConfiguration
|
||||
@Configuration
|
||||
@Configuration(proxyBeanMethods = false)
|
||||
protected static class Application {
|
||||
|
||||
}
|
||||
|
||||
@@ -40,7 +40,7 @@ public class BootstrapSourcesOrderingTests {
|
||||
}
|
||||
|
||||
@EnableAutoConfiguration
|
||||
@Configuration
|
||||
@Configuration(proxyBeanMethods = false)
|
||||
protected static class Application {
|
||||
|
||||
}
|
||||
|
||||
@@ -49,7 +49,7 @@ public class MessageSourceConfigurationTests {
|
||||
.isEqualTo("Hello World!");
|
||||
}
|
||||
|
||||
@Configuration
|
||||
@Configuration(proxyBeanMethods = false)
|
||||
@EnableAutoConfiguration
|
||||
protected static class TestApplication {
|
||||
|
||||
|
||||
@@ -36,7 +36,7 @@ import static org.springframework.cloud.bootstrap.TestHigherPriorityBootstrapCon
|
||||
* @author Spencer Gibb
|
||||
*/
|
||||
@Order(0)
|
||||
@Configuration
|
||||
@Configuration(proxyBeanMethods = false)
|
||||
@EnableConfigurationProperties
|
||||
public class TestBootstrapConfiguration {
|
||||
|
||||
|
||||
@@ -379,13 +379,13 @@ public class BootstrapConfigurationTests {
|
||||
.isEqualTo("Hello added!");
|
||||
}
|
||||
|
||||
@Configuration
|
||||
@Configuration(proxyBeanMethods = false)
|
||||
@EnableConfigurationProperties
|
||||
protected static class BareConfiguration {
|
||||
|
||||
}
|
||||
|
||||
@Configuration
|
||||
@Configuration(proxyBeanMethods = false)
|
||||
@ConfigurationProperties("expected")
|
||||
// This is added to bootstrap context as a source in bootstrap.properties
|
||||
protected static class PropertySourceConfiguration implements PropertySourceLocator {
|
||||
|
||||
@@ -85,12 +85,12 @@ public class BootstrapListenerHierarchyIntegrationTests {
|
||||
then(bootstrapContext.getParent()).isNull();
|
||||
}
|
||||
|
||||
@Configuration
|
||||
@Configuration(proxyBeanMethods = false)
|
||||
static class BasicConfiguration {
|
||||
|
||||
}
|
||||
|
||||
@Configuration
|
||||
@Configuration(proxyBeanMethods = false)
|
||||
static class RootConfiguration {
|
||||
|
||||
@Bean
|
||||
|
||||
@@ -49,7 +49,7 @@ public class EncryptionIntegrationTests {
|
||||
then(context.getBean(PasswordProperties.class).getPassword()).isEqualTo("test");
|
||||
}
|
||||
|
||||
@Configuration
|
||||
@Configuration(proxyBeanMethods = false)
|
||||
@EnableConfigurationProperties(PasswordProperties.class)
|
||||
protected static class TestConfiguration {
|
||||
|
||||
|
||||
@@ -125,7 +125,7 @@ public class EnvironmentManagerIntegrationTests {
|
||||
.isInstanceOf(WritableEnvironmentEndpointWebExtension.class);
|
||||
}
|
||||
|
||||
@Configuration
|
||||
@Configuration(proxyBeanMethods = false)
|
||||
@EnableAutoConfiguration
|
||||
protected static class TestConfiguration {
|
||||
|
||||
|
||||
@@ -115,7 +115,7 @@ public class ConfigurationPropertiesRebinderIntegrationTests {
|
||||
|
||||
}
|
||||
|
||||
@Configuration
|
||||
@Configuration(proxyBeanMethods = false)
|
||||
@EnableConfigurationProperties
|
||||
@ImportAutoConfiguration({ RefreshConfiguration.RebinderConfiguration.class,
|
||||
PropertyPlaceholderAutoConfiguration.class })
|
||||
@@ -139,7 +139,7 @@ public class ConfigurationPropertiesRebinderIntegrationTests {
|
||||
// Hack out a protected inner class for testing
|
||||
protected static class RefreshConfiguration extends RefreshAutoConfiguration {
|
||||
|
||||
@Configuration
|
||||
@Configuration(proxyBeanMethods = false)
|
||||
protected static class RebinderConfiguration
|
||||
extends ConfigurationPropertiesRebinderAutoConfiguration {
|
||||
|
||||
|
||||
@@ -65,7 +65,7 @@ public class ConfigurationPropertiesRebinderLifecycleIntegrationTests {
|
||||
then(this.properties.getCount()).isEqualTo(1);
|
||||
}
|
||||
|
||||
@Configuration
|
||||
@Configuration(proxyBeanMethods = false)
|
||||
@EnableConfigurationProperties
|
||||
@Import({ RefreshConfiguration.RebinderConfiguration.class,
|
||||
PropertyPlaceholderAutoConfiguration.class })
|
||||
@@ -81,7 +81,7 @@ public class ConfigurationPropertiesRebinderLifecycleIntegrationTests {
|
||||
// Hack out a protected inner class for testing
|
||||
protected static class RefreshConfiguration extends RefreshAutoConfiguration {
|
||||
|
||||
@Configuration
|
||||
@Configuration(proxyBeanMethods = false)
|
||||
protected static class RebinderConfiguration
|
||||
extends ConfigurationPropertiesRebinderAutoConfiguration {
|
||||
|
||||
|
||||
@@ -100,7 +100,7 @@ public class ConfigurationPropertiesRebinderListIntegrationTests {
|
||||
then(this.properties.getMessages().toString()).isEqualTo("[foo]");
|
||||
}
|
||||
|
||||
@Configuration
|
||||
@Configuration(proxyBeanMethods = false)
|
||||
@EnableConfigurationProperties
|
||||
@Import({ RefreshConfiguration.RebinderConfiguration.class,
|
||||
PropertyPlaceholderAutoConfiguration.class })
|
||||
@@ -116,7 +116,7 @@ public class ConfigurationPropertiesRebinderListIntegrationTests {
|
||||
// Hack out a protected inner class for testing
|
||||
protected static class RefreshConfiguration extends RefreshAutoConfiguration {
|
||||
|
||||
@Configuration
|
||||
@Configuration(proxyBeanMethods = false)
|
||||
protected static class RebinderConfiguration
|
||||
extends ConfigurationPropertiesRebinderAutoConfiguration {
|
||||
|
||||
|
||||
@@ -68,7 +68,7 @@ public class ConfigurationPropertiesRebinderProxyIntegrationTests {
|
||||
then(this.properties.getExpiry().get("one")).isEqualTo(new Integer(56));
|
||||
}
|
||||
|
||||
@Configuration
|
||||
@Configuration(proxyBeanMethods = false)
|
||||
@EnableConfigurationProperties
|
||||
@Import({ Interceptor.class, RefreshConfiguration.RebinderConfiguration.class,
|
||||
PropertyPlaceholderAutoConfiguration.class, AopAutoConfiguration.class })
|
||||
@@ -94,7 +94,7 @@ public class ConfigurationPropertiesRebinderProxyIntegrationTests {
|
||||
// Hack out a protected inner class for testing
|
||||
protected static class RefreshConfiguration extends RefreshAutoConfiguration {
|
||||
|
||||
@Configuration
|
||||
@Configuration(proxyBeanMethods = false)
|
||||
protected static class RebinderConfiguration
|
||||
extends ConfigurationPropertiesRebinderAutoConfiguration {
|
||||
|
||||
|
||||
@@ -86,7 +86,7 @@ public class ConfigurationPropertiesRebinderRefreshScopeIntegrationTests {
|
||||
then(this.properties.getCount()).isEqualTo(1);
|
||||
}
|
||||
|
||||
@Configuration
|
||||
@Configuration(proxyBeanMethods = false)
|
||||
@EnableConfigurationProperties
|
||||
@Import({ RefreshAutoConfiguration.class,
|
||||
ConfigurationPropertiesRebinderAutoConfiguration.class,
|
||||
|
||||
@@ -81,7 +81,7 @@ public class ContextRefresherIntegrationTests {
|
||||
then(this.properties.getMessage()).isEqualTo("Hello scope!");
|
||||
}
|
||||
|
||||
@Configuration
|
||||
@Configuration(proxyBeanMethods = false)
|
||||
@EnableConfigurationProperties(TestProperties.class)
|
||||
@EnableAutoConfiguration
|
||||
protected static class TestConfiguration {
|
||||
|
||||
@@ -160,12 +160,12 @@ public class ContextRefresherTests {
|
||||
return list;
|
||||
}
|
||||
|
||||
@Configuration
|
||||
@Configuration(proxyBeanMethods = false)
|
||||
protected static class Empty {
|
||||
|
||||
}
|
||||
|
||||
@Configuration
|
||||
@Configuration(proxyBeanMethods = false)
|
||||
// This is added to bootstrap context as a source in bootstrap.properties
|
||||
protected static class PropertySourceConfiguration implements PropertySourceLocator {
|
||||
|
||||
|
||||
@@ -72,7 +72,7 @@ public class RestartIntegrationTests {
|
||||
then(json).containsOnlyOnce("parent\": null");
|
||||
}
|
||||
|
||||
@Configuration
|
||||
@Configuration(proxyBeanMethods = false)
|
||||
@EnableAutoConfiguration
|
||||
protected static class TestConfiguration {
|
||||
|
||||
|
||||
@@ -52,7 +52,7 @@ public class ImportRefreshScopeIntegrationTests {
|
||||
then(this.service.getMessage()).isEqualTo("Hello scope!");
|
||||
}
|
||||
|
||||
@Configuration("service")
|
||||
@Configuration(value = "service", proxyBeanMethods = false)
|
||||
@RefreshScope
|
||||
public static class ExampleService {
|
||||
|
||||
@@ -62,7 +62,7 @@ public class ImportRefreshScopeIntegrationTests {
|
||||
|
||||
}
|
||||
|
||||
@Configuration
|
||||
@Configuration(proxyBeanMethods = false)
|
||||
@Import({ RefreshAutoConfiguration.class, ExampleService.class })
|
||||
protected static class TestConfiguration {
|
||||
|
||||
|
||||
@@ -87,7 +87,7 @@ public class RefreshEndpointIntegrationTests {
|
||||
return entity;
|
||||
}
|
||||
|
||||
@Configuration
|
||||
@Configuration(proxyBeanMethods = false)
|
||||
@EnableAutoConfiguration
|
||||
protected static class ClientApp {
|
||||
|
||||
|
||||
@@ -150,7 +150,7 @@ public class RefreshScopeConcurrencyTests {
|
||||
|
||||
}
|
||||
|
||||
@Configuration
|
||||
@Configuration(proxyBeanMethods = false)
|
||||
@EnableConfigurationProperties(TestProperties.class)
|
||||
@Import({ RefreshAutoConfiguration.class,
|
||||
PropertyPlaceholderAutoConfiguration.class })
|
||||
|
||||
@@ -169,7 +169,7 @@ public class RefreshScopeConfigurationScaleTests {
|
||||
|
||||
}
|
||||
|
||||
@Configuration
|
||||
@Configuration(proxyBeanMethods = false)
|
||||
@EnableConfigurationProperties
|
||||
@Import({ RefreshAutoConfiguration.class,
|
||||
PropertyPlaceholderAutoConfiguration.class })
|
||||
|
||||
@@ -133,7 +133,7 @@ public class RefreshScopeConfigurationTests {
|
||||
|
||||
}
|
||||
|
||||
@Configuration("application")
|
||||
@Configuration(value = "application", proxyBeanMethods = false)
|
||||
@RefreshScope
|
||||
protected static class Application {
|
||||
|
||||
@@ -151,7 +151,7 @@ public class RefreshScopeConfigurationTests {
|
||||
|
||||
}
|
||||
|
||||
@Configuration
|
||||
@Configuration(proxyBeanMethods = false)
|
||||
protected static class ClientApp {
|
||||
|
||||
public static void main(String[] args) {
|
||||
|
||||
@@ -216,7 +216,7 @@ public class RefreshScopeIntegrationTests {
|
||||
|
||||
}
|
||||
|
||||
@Configuration
|
||||
@Configuration(proxyBeanMethods = false)
|
||||
@EnableConfigurationProperties(TestProperties.class)
|
||||
@EnableAutoConfiguration
|
||||
protected static class TestConfiguration {
|
||||
|
||||
@@ -199,7 +199,7 @@ public class RefreshScopeLazyIntegrationTests {
|
||||
|
||||
}
|
||||
|
||||
@Configuration
|
||||
@Configuration(proxyBeanMethods = false)
|
||||
@EnableConfigurationProperties(TestProperties.class)
|
||||
@ImportAutoConfiguration({ RefreshAutoConfiguration.class,
|
||||
PropertyPlaceholderAutoConfiguration.class })
|
||||
|
||||
@@ -91,7 +91,7 @@ public class RefreshScopeListBindingIntegrationTests {
|
||||
throw new IllegalStateException("Could not find test property source");
|
||||
}
|
||||
|
||||
@Configuration
|
||||
@Configuration(proxyBeanMethods = false)
|
||||
@EnableConfigurationProperties
|
||||
@Import({ RefreshAutoConfiguration.class,
|
||||
PropertyPlaceholderAutoConfiguration.class })
|
||||
|
||||
@@ -66,7 +66,7 @@ public class RefreshScopeNullBeanIntegrationTests {
|
||||
|
||||
}
|
||||
|
||||
@Configuration
|
||||
@Configuration(proxyBeanMethods = false)
|
||||
protected static class OptionalConfiguration {
|
||||
|
||||
@Bean
|
||||
@@ -77,7 +77,7 @@ public class RefreshScopeNullBeanIntegrationTests {
|
||||
|
||||
}
|
||||
|
||||
@Configuration
|
||||
@Configuration(proxyBeanMethods = false)
|
||||
@Import({ RefreshAutoConfiguration.class, PropertyPlaceholderAutoConfiguration.class,
|
||||
OptionalConfiguration.class })
|
||||
protected static class TestConfiguration {
|
||||
|
||||
@@ -158,7 +158,7 @@ public class RefreshScopePureScaleTests {
|
||||
|
||||
}
|
||||
|
||||
@Configuration
|
||||
@Configuration(proxyBeanMethods = false)
|
||||
@Import({ RefreshAutoConfiguration.class,
|
||||
PropertyPlaceholderAutoConfiguration.class })
|
||||
protected static class TestConfiguration {
|
||||
|
||||
@@ -153,7 +153,7 @@ public class RefreshScopeScaleTests {
|
||||
|
||||
}
|
||||
|
||||
@Configuration
|
||||
@Configuration(proxyBeanMethods = false)
|
||||
@EnableConfigurationProperties(TestProperties.class)
|
||||
@Import({ RefreshAutoConfiguration.class,
|
||||
PropertyPlaceholderAutoConfiguration.class })
|
||||
|
||||
@@ -56,7 +56,7 @@ public class RefreshScopeSerializationTests {
|
||||
return factory;
|
||||
}
|
||||
|
||||
@Configuration
|
||||
@Configuration(proxyBeanMethods = false)
|
||||
protected static class TestConfiguration {
|
||||
|
||||
@Bean
|
||||
|
||||
@@ -71,7 +71,7 @@ public class RefreshScopeWebIntegrationTests {
|
||||
then(message).isEqualTo("Hello Dave!");
|
||||
}
|
||||
|
||||
@Configuration
|
||||
@Configuration(proxyBeanMethods = false)
|
||||
@EnableAutoConfiguration
|
||||
protected static class Application {
|
||||
|
||||
|
||||
@@ -169,7 +169,7 @@ public class RefreshEndpointTests {
|
||||
return map.size();
|
||||
}
|
||||
|
||||
@Configuration
|
||||
@Configuration(proxyBeanMethods = false)
|
||||
protected static class Empty implements SmartApplicationListener {
|
||||
|
||||
private List<ApplicationEvent> events = new ArrayList<ApplicationEvent>();
|
||||
|
||||
@@ -34,7 +34,7 @@ import org.springframework.core.annotation.AliasFor;
|
||||
*
|
||||
* @author Dave Syer
|
||||
*/
|
||||
@Configuration
|
||||
@Configuration(proxyBeanMethods = false)
|
||||
@Import(LoadBalancerClientConfigurationRegistrar.class)
|
||||
@Target(ElementType.TYPE)
|
||||
@Retention(RetentionPolicy.RUNTIME)
|
||||
|
||||
@@ -46,7 +46,7 @@ import org.springframework.core.env.Environment;
|
||||
* @author Olga Maciaszek-Sharma
|
||||
* @author Tim Ysewyn
|
||||
*/
|
||||
@Configuration
|
||||
@Configuration(proxyBeanMethods = false)
|
||||
@EnableConfigurationProperties
|
||||
@ConditionalOnDiscoveryEnabled
|
||||
public class LoadBalancerClientConfiguration {
|
||||
@@ -63,7 +63,7 @@ public class LoadBalancerClientConfiguration {
|
||||
ServiceInstanceListSupplier.class), name);
|
||||
}
|
||||
|
||||
@Configuration
|
||||
@Configuration(proxyBeanMethods = false)
|
||||
@ConditionalOnReactiveDiscoveryEnabled
|
||||
@Order(REACTIVE_SERVICE_INSTANCE_SUPPLIER_ORDER)
|
||||
public static class ReactiveSupportConfiguration {
|
||||
@@ -100,7 +100,7 @@ public class LoadBalancerClientConfiguration {
|
||||
|
||||
}
|
||||
|
||||
@Configuration
|
||||
@Configuration(proxyBeanMethods = false)
|
||||
@ConditionalOnBlockingDiscoveryEnabled
|
||||
@Order(REACTIVE_SERVICE_INSTANCE_SUPPLIER_ORDER + 1)
|
||||
public static class BlockingSupportConfiguration {
|
||||
|
||||
@@ -32,7 +32,7 @@ import org.springframework.context.annotation.Import;
|
||||
*
|
||||
* @author Dave Syer
|
||||
*/
|
||||
@Configuration
|
||||
@Configuration(proxyBeanMethods = false)
|
||||
@Retention(RetentionPolicy.RUNTIME)
|
||||
@Target({ ElementType.TYPE })
|
||||
@Documented
|
||||
|
||||
@@ -44,7 +44,7 @@ import org.springframework.web.client.RestTemplate;
|
||||
* @author Olga Maciaszek-Sharma
|
||||
* @since 2.1.3
|
||||
*/
|
||||
@Configuration
|
||||
@Configuration(proxyBeanMethods = false)
|
||||
@LoadBalancerClients
|
||||
@AutoConfigureAfter(LoadBalancerAutoConfiguration.class)
|
||||
@AutoConfigureBefore({
|
||||
@@ -61,7 +61,7 @@ public class BlockingLoadBalancerClientAutoConfiguration {
|
||||
return new BlockingLoadBalancerClientRibbonWarnLogger();
|
||||
}
|
||||
|
||||
@Configuration
|
||||
@Configuration(proxyBeanMethods = false)
|
||||
@ConditionalOnClass(RestTemplate.class)
|
||||
@Conditional(OnNoRibbonDefaultCondition.class)
|
||||
protected static class BlockingLoadbalancerClientConfig {
|
||||
|
||||
@@ -34,7 +34,7 @@ import org.springframework.context.annotation.Configuration;
|
||||
* @author Spencer Gibb
|
||||
* @author Olga Maciaszek-Sharma
|
||||
*/
|
||||
@Configuration
|
||||
@Configuration(proxyBeanMethods = false)
|
||||
@LoadBalancerClients
|
||||
@AutoConfigureBefore({ ReactorLoadBalancerClientAutoConfiguration.class,
|
||||
LoadBalancerBeanPostProcessorAutoConfiguration.class,
|
||||
|
||||
@@ -34,7 +34,7 @@ import org.springframework.context.annotation.Configuration;
|
||||
* @see CacheAutoConfiguration
|
||||
* @see CacheAspectSupport
|
||||
*/
|
||||
@Configuration
|
||||
@Configuration(proxyBeanMethods = false)
|
||||
@ConditionalOnClass({ CacheManager.class, CacheAutoConfiguration.class })
|
||||
@ConditionalOnMissingBean(CacheAspectSupport.class)
|
||||
@EnableCaching
|
||||
|
||||
@@ -141,7 +141,7 @@ class BlockingLoadBalancerClientTests {
|
||||
}
|
||||
}
|
||||
|
||||
@Configuration
|
||||
@Configuration(proxyBeanMethods = false)
|
||||
@EnableAutoConfiguration
|
||||
@SpringBootConfiguration
|
||||
@LoadBalancerClients({
|
||||
|
||||
Reference in New Issue
Block a user