From b3bc1ff5a95f8efc2d631a6493332006e5bd9cbc Mon Sep 17 00:00:00 2001 From: John Blum Date: Tue, 20 Mar 2018 11:55:11 -0700 Subject: [PATCH] Do not require autowired constructor parameters. --- .../autoconfigure/GeodeCachingProviderAutoConfiguration.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/geode-spring-boot-starter/src/main/java/org/springframework/boot/data/geode/autoconfigure/GeodeCachingProviderAutoConfiguration.java b/geode-spring-boot-starter/src/main/java/org/springframework/boot/data/geode/autoconfigure/GeodeCachingProviderAutoConfiguration.java index 5b0857ff..96bc0634 100644 --- a/geode-spring-boot-starter/src/main/java/org/springframework/boot/data/geode/autoconfigure/GeodeCachingProviderAutoConfiguration.java +++ b/geode-spring-boot-starter/src/main/java/org/springframework/boot/data/geode/autoconfigure/GeodeCachingProviderAutoConfiguration.java @@ -62,8 +62,9 @@ class GeodeCachingProviderAutoConfiguration { @Autowired private GemfireCacheManager cacheManager; - GeodeCachingProviderAutoConfiguration(CacheProperties cacheProperties, - CacheManagerCustomizers cacheManagerCustomizers) { + GeodeCachingProviderAutoConfiguration( + @Autowired(required = false) CacheProperties cacheProperties, + @Autowired(required = false) CacheManagerCustomizers cacheManagerCustomizers) { this.cacheProperties = cacheProperties; this.cacheManagerCustomizers = cacheManagerCustomizers;