From 34b0f30aef8b566aa6d3355b54061ebae0aef305 Mon Sep 17 00:00:00 2001 From: zhuangchong <37063904+zhuangchong@users.noreply.github.com> Date: Fri, 22 Jan 2021 12:31:14 +0800 Subject: [PATCH] fix alert property utils init properties. (#4527) --- .../apache/dolphinscheduler/alert/utils/PropertyUtils.java | 5 +++++ dolphinscheduler-alert/src/main/resources/alert.properties | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/dolphinscheduler-alert/src/main/java/org/apache/dolphinscheduler/alert/utils/PropertyUtils.java b/dolphinscheduler-alert/src/main/java/org/apache/dolphinscheduler/alert/utils/PropertyUtils.java index 8da9abe293..16bcb6bd79 100644 --- a/dolphinscheduler-alert/src/main/java/org/apache/dolphinscheduler/alert/utils/PropertyUtils.java +++ b/dolphinscheduler-alert/src/main/java/org/apache/dolphinscheduler/alert/utils/PropertyUtils.java @@ -43,6 +43,11 @@ public class PropertyUtils { private static final Properties properties = new Properties(); + /** + * init properties + */ + private static final PropertyUtils propertyUtils = new PropertyUtils(); + private PropertyUtils() { init(); } diff --git a/dolphinscheduler-alert/src/main/resources/alert.properties b/dolphinscheduler-alert/src/main/resources/alert.properties index c153b9b83a..cad64882a0 100644 --- a/dolphinscheduler-alert/src/main/resources/alert.properties +++ b/dolphinscheduler-alert/src/main/resources/alert.properties @@ -22,7 +22,7 @@ #alert.plugin.dir config the Alert Plugin dir . AlertServer while find and load the Alert Plugin Jar from this dir when deploy and start AlertServer on the server . #eg : -alert.plugin.dir=/opt/soft/spi/lib/plugin/alert +#alert.plugin.dir=/opt/soft/spi/lib/plugin/alert #maven.local.repository=/Users/gaojun/Documents/jianguoyun/localRepository