| | |
| | | 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; |
| | |
| | | @Resource |
| | | AutoQueryService autoQueryService; |
| | | |
| | | @Value("${server.port}") |
| | | String serverPort; |
| | | |
| | | @Value("${server.servlet.context-path}") |
| | | String contextPath; |
| | | |
| | | @Override |
| | | public void run(ApplicationArguments args) { |
| | | // noinspection AlibabaRemoveCommentedCode |
| | |
| | | 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)) { |