CZT
2023-09-08 5d7d19b28f24da0752a990f080de881d97fa8564
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
package com.fzzy.web;
import com.fzzy.api.service.ApiCommonService;
import com.fzzy.api.service.ApiTriggerService;
import com.fzzy.api.service.GbCheckItemService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.CommandLineRunner;
import org.springframework.core.annotation.Order;
import org.springframework.stereotype.Service;
 
/**
 * 配置系统级别的项目启动初始化信息
 *
 * @author vince
 */
@Service
@Slf4j
@Order(value = 1)
public class SystemRunner implements CommandLineRunner {
 
    @Autowired
    private ApiTriggerService apiTriggerService;
    @Autowired
    private GbCheckItemService checkItemService;
    @Autowired
    private ApiCommonService commonService;
 
    @Override
    public void run(String... args) throws Exception {
        log.info("系统启动刷新系统缓存!");
        apiTriggerService.flushCache();
        checkItemService.flushCache();
        commonService.flushConfCache();
        commonService.flushApi1105Cache();
 
    }
 
}