Просмотр исходного кода

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

xuxueli 8 лет назад
Родитель
Сommit
8f80395ac1
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      xxl-job-admin/src/main/java/com/xxl/job/admin/core/util/I18nUtil.java

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

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