From 3c2ac9b73bd8f06d4fea76a095a17759c7bb0ade Mon Sep 17 00:00:00 2001 From: "Destiny.Lin" Date: Mon, 2 Sep 2024 01:38:30 +0800 Subject: [PATCH] =?UTF-8?q?REPORT-132496=20=E3=80=90fr-fbp=E5=9B=9E?= =?UTF-8?q?=E5=BD=92=E3=80=91=E8=BF=9C=E7=A8=8B=E4=B8=8B=E9=A2=84=E8=A7=88?= =?UTF-8?q?=E6=95=B0=E6=8D=AE=E9=9B=86=E6=8A=A5=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../boot/env/function/DesignDatasourceComponent.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/designer-realize/src/main/java/com/fanruan/boot/env/function/DesignDatasourceComponent.java b/designer-realize/src/main/java/com/fanruan/boot/env/function/DesignDatasourceComponent.java index c098989c22..4c80601d78 100644 --- a/designer-realize/src/main/java/com/fanruan/boot/env/function/DesignDatasourceComponent.java +++ b/designer-realize/src/main/java/com/fanruan/boot/env/function/DesignDatasourceComponent.java @@ -12,15 +12,20 @@ import com.fanruan.config.impl.data.ConnectionConfigWriter; import com.fanruan.config.impl.data.ConnectionConfigWriterFactory; import com.fanruan.config.impl.data.TableDataConfigProviderFactory; import com.fanruan.data.ConnectionConfigWrapper; +import com.fanruan.workplace.http.codec.SerializerRegister; +import com.fanruan.workplace.http.codec.SerializerRegisterGroup; +import com.fanruan.workplace.http.codec.xml.XmlableSerializer; import com.fr.base.MultiParameterParser; import com.fr.base.ParameterType; import com.fr.base.ParameterTypeHandler; +import com.fr.base.TableData; import com.fr.base.parameter.FormulaParameterParser; import com.fr.base.parameter.TableColumnParameterParser; import com.fr.data.driver.classloader.DriverClassLoaderHelper; import com.fr.data.driver.classloader.impl.ChildFirstDriverClassLoader; import com.fr.data.driver.classloader.impl.ChildOnlyDriverClassLoader; import com.fr.data.driver.constants.DriverLoaderStrategies; +import com.fr.data.impl.Connection; import com.fr.decision.webservice.v10.datasource.connection.processor.impl.ConnectionPluginProcessor; import com.fr.decision.webservice.v10.datasource.connection.processor.impl.ConnectionProcessorFactory; import com.fr.decision.webservice.v10.datasource.connection.processor.impl.JDBCConnectionProcessor; @@ -60,6 +65,8 @@ public class DesignDatasourceComponent extends DatasourceComponent { DataSetProcessorFactory.init(); Carina.getApplicationContext().singleton(LocalConnectionShell.class).set(new LocalConnectionSource()); Carina.getApplicationContext().singleton(LocalTableDataShell.class).set(new LocalTableDataSource()); + Carina.getApplicationContext().group(SerializerRegisterGroup.class).add(new SerializerRegister(Connection.class, XmlableSerializer.getInstance())); + Carina.getApplicationContext().group(SerializerRegisterGroup.class).add(new SerializerRegister(TableData.class, XmlableSerializer.getInstance())); } /**