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); + } + }); + } }