Browse Source

fix alert property utils init properties. (#4527)

pull/3/MERGE
zhuangchong 4 years ago committed by GitHub
parent
commit
34b0f30aef
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 5
      dolphinscheduler-alert/src/main/java/org/apache/dolphinscheduler/alert/utils/PropertyUtils.java
  2. 2
      dolphinscheduler-alert/src/main/resources/alert.properties

5
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();
}

2
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

Loading…
Cancel
Save