Parcourir la source

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

xuxueli il y a 8 ans
Parent
révision
8f80395ac1

+ 1 - 1
xxl-job-admin/src/main/java/com/xxl/job/admin/core/util/I18nUtil.java Voir le fichier

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