From 8789c83942e2145f11a09d642d60970bc3d54c63 Mon Sep 17 00:00:00 2001 From: thinkgem Date: Mon, 12 May 2025 11:02:30 +0800 Subject: [PATCH] =?UTF-8?q?FastJSON=202.x=20=E5=8F=AA=E6=9C=89=E4=B8=AA?= =?UTF-8?q?=E5=88=AB=E7=AC=AC=E4=B8=89=E6=96=B9=E5=9C=A8=E4=BD=BF=E7=94=A8?= =?UTF-8?q?=EF=BC=8C1.x=20=E5=B7=B2=E7=BB=8F=E6=B2=A1=E6=9C=89=E5=86=8D?= =?UTF-8?q?=E7=94=A8=E4=BA=86=EF=BC=8C=E4=BB=A3=E7=A0=81=E7=A7=BB=E9=99=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/jeesite/common/io/PropertyLoader.java | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/common/src/main/java/com/jeesite/common/io/PropertyLoader.java b/common/src/main/java/com/jeesite/common/io/PropertyLoader.java index 3863f52a..5c70fa84 100644 --- a/common/src/main/java/com/jeesite/common/io/PropertyLoader.java +++ b/common/src/main/java/com/jeesite/common/io/PropertyLoader.java @@ -4,7 +4,6 @@ */ package com.jeesite.common.io; -import com.alibaba.fastjson.parser.ParserConfig; import com.jeesite.common.lang.StringUtils; import org.springframework.boot.env.OriginTrackedMapPropertySource; import org.springframework.boot.env.PropertiesPropertySourceLoader; @@ -39,12 +38,12 @@ public class PropertyLoader implements org.springframework.boot.env.PropertySour List> propertySources = new ArrayList<>(); if (!isLoadJeeSitePropertySource) { isLoadJeeSitePropertySource = true; - try { - // 默认开启 FastJSON 1.x 的,安全模式 - ParserConfig.getGlobalInstance().setSafeMode(true); - } catch (Throwable ignored) { - // 兼容 FastJSON 2.x 的调用,忽略异常 - } +// try { +// // 默认开启 FastJSON 1.x 的,安全模式 +// ParserConfig.getGlobalInstance().setSafeMode(true); +// } catch (Throwable ignored) { +// // 兼容 FastJSON 2.x 的调用,忽略异常 +// } Properties properties = PropertiesUtils.getInstance().getProperties(); propertySources.add(new OriginTrackedMapPropertySource("jeesite", properties)); } else {