yangys
2024-10-30 25db770e621f1259b8d5b7fd514207f7481c2d0f
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
package com.qianwen.smartman.modules.system.init;
 
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import com.qianwen.smartman.modules.system.service.IParamService;
import org.springframework.boot.CommandLineRunner;
import org.springframework.stereotype.Component;
 
@Component
public class FmsInitBean implements CommandLineRunner {
    private static final Logger log = LoggerFactory.getLogger(FmsInitBean.class);
    private final IParamService paramService;
 
    public FmsInitBean(final IParamService paramService) {
        this.paramService = paramService;
    }
 
    public void run(String... args) throws Exception {
        try {
            //this.paramService.startSwitching();
        } catch (Exception e) {
            log.info("初始化手动运行失败:{}", e.getMessage());
        }
    }
}