From 72dad56e8e64d84d80b3a331d3338d763f597d32 Mon Sep 17 00:00:00 2001 From: "Destiny.Lin" Date: Thu, 17 Oct 2024 17:12:29 +0800 Subject: [PATCH] =?UTF-8?q?REPORT-137327=20-=20=E8=BF=9C=E7=A8=8B=E8=AE=BE?= =?UTF-8?q?=E8=AE=A1=E4=B8=8B=E5=88=87=E6=8D=A2=E7=9B=AE=E5=BD=95=E5=8D=A1?= =?UTF-8?q?=E9=A1=BF=E4=BC=98=E5=8C=96=20=E4=BF=AE=E6=94=B9=E7=BC=93?= =?UTF-8?q?=E5=AD=98=E6=9C=BA=E5=88=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../boot/env/function/DesignDatasourceComponent.java | 8 ++++---- .../fanruan/boot/env/function/app/DesignAppComponent.java | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) 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 51994dbc04..a28337a0ae 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 @@ -91,8 +91,8 @@ public class DesignDatasourceComponent extends DatasourceComponent { ParameterTypeHandler.getInstance().addParser(ParameterType.JSONArray.name(), new MultiParameterParser()); ParameterTypeHandler.getInstance().addParser(ParameterType.Formula.name(), new FormulaParameterParser()); ParameterTypeHandler.getInstance().addParser(ParameterType.TableColumn.name(), new TableColumnParameterParser()); - TableDataRepository.getInstance().start(); - ConnectionRepository.getInstance().start(); + TableDataRepository.getInstance().startUseCache(); + ConnectionRepository.getInstance().startUseCache(); } private void registerDriverClassLoader() { @@ -106,8 +106,8 @@ public class DesignDatasourceComponent extends DatasourceComponent { */ @Stop public void stop() { - ConnectionRepository.getInstance().stop(); - TableDataRepository.getInstance().stop(); + ConnectionRepository.getInstance().stopUseCache(); + TableDataRepository.getInstance().stopUseCache(); } /** diff --git a/designer-realize/src/main/java/com/fanruan/boot/env/function/app/DesignAppComponent.java b/designer-realize/src/main/java/com/fanruan/boot/env/function/app/DesignAppComponent.java index 377279149c..ffc779636f 100644 --- a/designer-realize/src/main/java/com/fanruan/boot/env/function/app/DesignAppComponent.java +++ b/designer-realize/src/main/java/com/fanruan/boot/env/function/app/DesignAppComponent.java @@ -37,7 +37,7 @@ public class DesignAppComponent { JTemplateFactory.register(app); } PluginRemote.getInstance().start(); - RemoteAuthorityRepository.getInstance().start(); + RemoteAuthorityRepository.getInstance().startUseCache(); } /** @@ -45,7 +45,7 @@ public class DesignAppComponent { */ @Stop public void stop() { - RemoteAuthorityRepository.getInstance().stop(); + RemoteAuthorityRepository.getInstance().stopUseCache(); List appList = new ArrayList<>(Carina.getApplicationContext().group(AppGroup.class).getAll()); for (App app : appList) { JTemplateFactory.remove(app);