国际化配置文件,缓存事件调整为60s
This commit is contained in:
parent
a052cb8104
commit
8f80395ac1
|
@ -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 {
|
||||||
|
|
Loading…
Reference in New Issue