mirror of
https://github.com/spring-projects/spring-boot.git
synced 2024-08-29 03:06:45 +08:00
Add explicit dependency to CacheAutoConfiguration
Make sure that the cache statistics auto-configuration is evaluated after the cache auto-configuration itself. See gh-2633
This commit is contained in:
parent
62a2dd659b
commit
80ecb8220d
@ -28,7 +28,9 @@ import org.springframework.boot.actuate.cache.EhCacheStatisticsProvider;
|
||||
import org.springframework.boot.actuate.cache.GuavaCacheStatisticsProvider;
|
||||
import org.springframework.boot.actuate.cache.HazelcastCacheStatisticsProvider;
|
||||
import org.springframework.boot.actuate.cache.JCacheStatisticsProvider;
|
||||
import org.springframework.boot.autoconfigure.AutoConfigureAfter;
|
||||
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
|
||||
import org.springframework.boot.autoconfigure.cache.CacheAutoConfiguration;
|
||||
import org.springframework.boot.autoconfigure.condition.ConditionalOnBean;
|
||||
import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
|
||||
import org.springframework.cache.Cache;
|
||||
@ -50,6 +52,7 @@ import com.hazelcast.core.IMap;
|
||||
* @since 1.3.0
|
||||
*/
|
||||
@Configuration
|
||||
@AutoConfigureAfter(CacheAutoConfiguration.class)
|
||||
@ConditionalOnBean(CacheManager.class)
|
||||
public class CacheStatisticsAutoConfiguration {
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user