| | |
| | | package com.se.simu.config; |
| | | |
| | | import com.se.simu.helper.CaffeineHelper; |
| | | import com.se.simu.helper.GdalHelper; |
| | | import com.se.simu.helper.WebHelper; |
| | | import lombok.extern.slf4j.Slf4j; |
| | |
| | | @Value("${server.port}") |
| | | String serverPort; |
| | | |
| | | @Value("${config.cacheTime}") |
| | | Integer cacheTime; |
| | | |
| | | @Value("${server.servlet.context-path}") |
| | | String contextPath; |
| | | |
| | |
| | | try { |
| | | log.info("***************** 初始化 GDAL *****************" + "\n"); |
| | | GdalHelper.init(env.getProperty("config.gdalPath")); |
| | | CaffeineHelper.init(cacheTime); |
| | | |
| | | String path = null != contextPath && contextPath.length() > 1 ? contextPath : ""; |
| | | log.info("API文档:http://localhost:" + serverPort + path + "/doc.html"); |