Skip to content

Commit

Permalink
Adding proxyBeanMethods = false to configuration files. Fixes #62
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryan Baxter committed Nov 14, 2019
1 parent 019251a commit 001fc23
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
* @author Ben Hale
* @author Scott Frederick
*/
@Configuration
@Configuration(proxyBeanMethods = false)
@ConditionalOnProperty(prefix = "spring.cloud.cloudfoundry",
name = { "username", "password" })
@ConditionalOnClass(name = { "reactor.core.publisher.Flux",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
/**
* @author Josh Long
*/
@Configuration
@Configuration(proxyBeanMethods = false)
@ConditionalOnClass(CloudFoundryOperations.class)
@ConditionalOnDiscoveryEnabled
@ConditionalOnBlockingDiscoveryEnabled
Expand All @@ -50,7 +50,7 @@ public CloudFoundryHeartbeatSender cloudFoundryHeartbeatSender(
return new CloudFoundryHeartbeatSender(client);
}

@Configuration
@Configuration(proxyBeanMethods = false)
@ConditionalOnProperty(value = "spring.cloud.cloudfoundry.discovery.use-dns",
havingValue = "false", matchIfMissing = true)
public static class CloudFoundryDiscoveryClientConfig {
Expand All @@ -66,7 +66,7 @@ public CloudFoundryDiscoveryClient cloudFoundryDiscoveryClient(

}

@Configuration
@Configuration(proxyBeanMethods = false)
@ConditionalOnProperty(value = "spring.cloud.cloudfoundry.discovery.use-dns",
havingValue = "true")
public static class DnsBasedCloudFoundryDiscoveryClientConfig {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
/**
* @author Josh Long
*/
@Configuration
@Configuration(proxyBeanMethods = false)
public class CloudFoundryRibbonClientConfiguration {

@RibbonClientName
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
*
* @author Josh Long
*/
@Configuration
@Configuration(proxyBeanMethods = false)
@EnableConfigurationProperties
@ConditionalOnClass(IClient.class)
@ConditionalOnBean(SpringClientFactory.class)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
*
* @author Tim Ysewyn
*/
@Configuration
@Configuration(proxyBeanMethods = false)
@ConditionalOnClass(CloudFoundryOperations.class)
@ConditionalOnDiscoveryEnabled
@ConditionalOnReactiveDiscoveryEnabled
Expand All @@ -54,7 +54,7 @@
@AutoConfigureBefore(ReactiveCommonsClientAutoConfiguration.class)
public class CloudFoundryReactiveDiscoveryClientConfiguration {

@Configuration
@Configuration(proxyBeanMethods = false)
@ConditionalOnProperty(value = "spring.cloud.cloudfoundry.discovery.use-dns",
havingValue = "false", matchIfMissing = true)
public static class CloudFoundryNativeReactiveDiscoveryClientConfig {
Expand Down Expand Up @@ -86,12 +86,12 @@ public CloudFoundryReactiveHeartbeatSender cloudFoundryHeartbeatSender(

}

@Configuration
@Configuration(proxyBeanMethods = false)
@ConditionalOnProperty(value = "spring.cloud.cloudfoundry.discovery.use-dns",
havingValue = "true")
public static class DnsBasedCloudFoundryReactiveDiscoveryClientConfig {

@Configuration
@Configuration(proxyBeanMethods = false)
@ConditionalOnProperty(
value = "spring.cloud.cloudfoundry.discovery.use-container-ip",
havingValue = "true")
Expand Down Expand Up @@ -126,7 +126,7 @@ public CloudFoundryReactiveHeartbeatSender cloudFoundryHeartbeatSender(

}

@Configuration
@Configuration(proxyBeanMethods = false)
@ConditionalOnProperty(
value = "spring.cloud.cloudfoundry.discovery.use-container-ip",
havingValue = "false", matchIfMissing = true)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ public void testUseContainerIpTrue() {
});
}

@Configuration
@Configuration(proxyBeanMethods = false)
public static class CloudFoundryConfig {

@Bean
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
/**
* @author Dave Syer
*/
@Configuration
@Configuration(proxyBeanMethods = false)
@PropertySource("spring-cloud-cloudfoundry.properties")
public class StickyFilterConfiguration {

Expand Down

0 comments on commit 001fc23

Please sign in to comment.