From 7e41e40762f59c68032be76724e08ac5f168061c Mon Sep 17 00:00:00 2001 From: Rob Winch Date: Wed, 29 Jun 2016 21:01:30 -0500 Subject: [PATCH] Fix Gemfire ClientConfig BeanFactoryPostProcessor @Bean method ClientConfig.propertySourcesPlaceholderConfigurer was non-static and returns an object assignable to Spring's BeanFactoryPostProcessor interface. This will result in a failure to process annotations such as @Autowired, @Resource and @PostConstruct within the method's declaring @Configuration class. This commit makes the method static to avoid the problem. --- .../src/main/java/sample/ClientConfig.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/httpsession-gemfire-clientserver/src/main/java/sample/ClientConfig.java b/samples/httpsession-gemfire-clientserver/src/main/java/sample/ClientConfig.java index 6d32ba54..9ebe13aa 100644 --- a/samples/httpsession-gemfire-clientserver/src/main/java/sample/ClientConfig.java +++ b/samples/httpsession-gemfire-clientserver/src/main/java/sample/ClientConfig.java @@ -68,7 +68,7 @@ public class ClientConfig { } @Bean - PropertySourcesPlaceholderConfigurer propertySourcesPlaceholderConfigurer() { + static PropertySourcesPlaceholderConfigurer propertySourcesPlaceholderConfigurer() { return new PropertySourcesPlaceholderConfigurer(); }