package com.ruoyi.framework.config;

import org.springframework.boot.autoconfigure.condition.ConditionalOnBean;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.context.annotation.Configuration;

@Configuration
// 当配置ruoyi.dev=false的时候才启动缓存
@ConditionalOnProperty(prefix = "ruoyi",name = "dev",havingValue = "false")
@EnableCaching
public class CacheConfig {
}
