| | |
| | | package com.se.simu.config; |
| | | |
| | | import com.se.simu.helper.GdalHelper; |
| | | import com.se.simu.helper.WebHelper; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.beans.factory.annotation.Value; |
| | |
| | | public void run(ApplicationArguments args) { |
| | | // noinspection AlibabaRemoveCommentedCode |
| | | try { |
| | | //GdalHelper.init(env.getProperty("sys.gdal_path")); |
| | | |
| | | log.info("***************** 系统启动完毕 *****************" + "\n"); |
| | | log.info("***************** 初始化 GDAL *****************" + "\n"); |
| | | GdalHelper.init(env.getProperty("sys.path.gdal")); |
| | | |
| | | String path = null != contextPath && contextPath.length() > 1 ? contextPath : ""; |
| | | log.info("API文档:http://localhost:" + serverPort + path + "/doc.html"); |
| | | log.info("API文档:http://{}:{}{}/doc.html", WebHelper.getHostIp(), serverPort, path); |
| | | |
| | | log.info("***************** 系统启动完毕 *****************" + "\n"); |
| | | } catch (Exception ex) { |
| | | log.error(ex.getMessage(), ex); |
| | | } |