This commit is contained in:
thinkgem
2023-12-05 16:30:44 +08:00
parent cecec315d4
commit d00f4b6d25

View File

@@ -42,7 +42,7 @@ public class PropertyLoader implements org.springframework.boot.env.PropertySour
try {
// 默认开启 FastJSON 1.x 的,安全模式
ParserConfig.getGlobalInstance().setSafeMode(true);
} catch (NoSuchMethodError ignored) {
} catch (Throwable ignored) {
// 兼容 FastJSON 2.x 的调用,忽略异常
}
Properties properties = PropertiesUtils.getInstance().getProperties();