From c63f5c032bee42eb339cbbd95c8cee4f7132cf7e Mon Sep 17 00:00:00 2001 From: 13693261870 <252740454@qq.com> Date: 星期四, 07 十一月 2024 09:58:17 +0800 Subject: [PATCH] 添加数据校验功能 --- src/main/java/com/se/simu/config/InitConfig.java | 9 +++++++-- 1 files changed, 7 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/se/simu/config/InitConfig.java b/src/main/java/com/se/simu/config/InitConfig.java index 491bb3e..82d5bea 100644 --- a/src/main/java/com/se/simu/config/InitConfig.java +++ b/src/main/java/com/se/simu/config/InitConfig.java @@ -1,5 +1,6 @@ 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; @@ -15,7 +16,7 @@ * 鍒濆鍖栭厤缃被 * * @author WWW - * @date 2024-07-16 + * @date 2024-09-12 */ @Slf4j @Component @@ -26,6 +27,9 @@ @Value("${server.port}") String serverPort; + @Value("${config.cacheTime}") + Integer cacheTime; + @Value("${server.servlet.context-path}") String contextPath; @@ -34,7 +38,8 @@ // noinspection AlibabaRemoveCommentedCode try { log.info("***************** 鍒濆鍖� GDAL *****************" + "\n"); - GdalHelper.init(env.getProperty("sys.path.gdal")); + 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"); -- Gitblit v1.9.3