管道基础大数据平台系统开发-【后端】-Server
13693261870
2024-03-21 b9b490e0ec226389c6e2502fecf918f7537d8c57
src/main/java/com/lf/server/config/InitConfig.java
@@ -8,6 +8,7 @@
import com.lf.server.service.sys.ArgsService;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
import org.springframework.core.env.Environment;
@@ -32,11 +33,17 @@
    @Resource
    Environment env;
    //@Resource
    //TestService testService;
    @Resource
    TestService testService;
    @Resource
    AutoQueryService autoQueryService;
    @Value("${server.port}")
    String serverPort;
    @Value("${server.servlet.context-path}")
    String contextPath;
    @Override
    public void run(ApplicationArguments args) {
@@ -45,12 +52,13 @@
            GdalHelper.init(env.getProperty("sys.gdal_path"));
            UploadAttachService.init(env.getProperty("sys.attachTabs"));
            //testService.testRegister();
            //testService.testExcel();
            pathHelper.init();
            StaticData.ADMIN = env.getProperty("sys.admin");
            argsService.initSettingData();
            log.info("***************** 系统启动完毕 *****************" + "\n");
            log.info("API文档:http://localhost:" + serverPort + contextPath + "/swagger-ui.html");
            String autoQuery = env.getProperty("sys.autoQuery");
            if (StaticData.S1.equals(autoQuery)) {