org.springframework.boot.autoconfigure.cache.CacheAutoConfigurationBefore Maven / Gradle / Ivy
package org.springframework.boot.autoconfigure.cache;
import org.springframework.boot.autoconfigure.AutoConfigureBefore;
import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.cache.CacheManager;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.context.annotation.Configuration;
@Configuration
@ConditionalOnClass(CacheManager.class)
@AutoConfigureBefore({ CacheAutoConfiguration.class })
@ConditionalOnProperty(prefix = "spring.cache", name = "auto", havingValue = "true", matchIfMissing = true)
public class CacheAutoConfigurationBefore {
@EnableCaching
@Configuration
protected static class CacheConfiguration {
}
}