From 8656fa36bfa06a4adc4a1acb1c817410e191e6fa Mon Sep 17 00:00:00 2001 From: chenjianxing Date: Wed, 25 Nov 2020 20:45:34 +0800 Subject: [PATCH] =?UTF-8?q?fi(=E6=8E=A5=E5=8F=A3=E6=B5=8B=E8=AF=95):=20pyt?= =?UTF-8?q?hon=20=E8=84=9A=E6=9C=AC=E5=A4=B1=E6=95=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/pom.xml | 2 +- .../metersphere/listener/AppStartListener.java | 16 +++++++++------- 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/backend/pom.xml b/backend/pom.xml index 2cf6adf908..0353064d0f 100644 --- a/backend/pom.xml +++ b/backend/pom.xml @@ -509,7 +509,7 @@ org.python jython-standalone - 2.7.0 + 2.7.2 jar true src/main/resources/jmeter/lib/ext diff --git a/backend/src/main/java/io/metersphere/listener/AppStartListener.java b/backend/src/main/java/io/metersphere/listener/AppStartListener.java index 0b55a6cd91..1b408c2ba4 100644 --- a/backend/src/main/java/io/metersphere/listener/AppStartListener.java +++ b/backend/src/main/java/io/metersphere/listener/AppStartListener.java @@ -72,13 +72,15 @@ public class AppStartListener implements ApplicationListener jars = jarConfigService.list(); - try { - jars.forEach(jarConfig -> { + + jars.forEach(jarConfig -> { + try { NewDriverManager.loadJar(jarConfig.getPath()); - }); - } catch (Exception e) { - e.printStackTrace(); - LogUtil.error(e.getMessage(), e); - } + } catch (Exception e) { + e.printStackTrace(); + LogUtil.error(e.getMessage(), e); + } + }); + } }