Sfoglia il codice sorgente

国际化配置文件,缓存事件调整为60s

xuxueli 8 anni fa
parent
commit
8f80395ac1

+ 1 - 1
xxl-job-admin/src/main/java/com/xxl/job/admin/core/util/I18nUtil.java Vedi File

@@ -27,7 +27,7 @@ public class I18nUtil {
27 27
     private static long lastCacheTim = 0L;
28 28
 
29 29
     public static Properties loadI18nProp(){
30
-        if (prop != null && (System.currentTimeMillis()-lastCacheTim)<3*1000) {
30
+        if (prop != null && (System.currentTimeMillis()-lastCacheTim)<60*1000) {
31 31
             return prop;
32 32
         }
33 33
         try {