|
@@ -16,7 +16,7 @@ import org.springframework.stereotype.Component;
|
|
@Component //把类交给spring容器管理
|
|
@Component //把类交给spring容器管理
|
|
@Order(100) //使用order属性,设置该类在spring容器中的加载顺序
|
|
@Order(100) //使用order属性,设置该类在spring容器中的加载顺序
|
|
@Slf4j
|
|
@Slf4j
|
|
-public class CacheDeleteInit implements CommandLineRunner {
|
|
|
|
|
|
+public class CacheInit implements CommandLineRunner {
|
|
|
|
|
|
@Autowired
|
|
@Autowired
|
|
CacheFacade cacheFacade;
|
|
CacheFacade cacheFacade;
|
|
@@ -27,7 +27,8 @@ public class CacheDeleteInit implements CommandLineRunner {
|
|
@Override
|
|
@Override
|
|
public void run(String... args) throws Exception {
|
|
public void run(String... args) throws Exception {
|
|
// 服务启动清除redis缓存
|
|
// 服务启动清除redis缓存
|
|
- cacheFacade.clear();
|
|
|
|
|
|
+// cacheFacade.clear();
|
|
|
|
+ // 服务启动生成redis缓存
|
|
clinicFacade.getClinicInfo();
|
|
clinicFacade.getClinicInfo();
|
|
|
|
|
|
log.info("病历质控系统缓存启动初始化成功!");
|
|
log.info("病历质控系统缓存启动初始化成功!");
|