做redis 缓存的时候,总感觉写的东西太繁琐,干脆做一个启动时加载的redis 缓存
在写一个xxl-job 每天一更
启动时加载 一般放在bootstrap 包下
@Component 注入spring
@Order(value = 20220509) 数据倒序
@Slf4j 日志
public class BeanBootstrap implements ApplicationRunner {
// 代码 启动时运行
}

做redis 缓存的时候,总感觉写的东西太繁琐,干脆做一个启动时加载的redis 缓存
在写一个xxl-job 每天一更
启动时加载 一般放在bootstrap 包下
@Component 注入spring
@Order(value = 20220509) 数据倒序
@Slf4j 日志
public class BeanBootstrap implements ApplicationRunner {
// 代码 启动时运行
}