فهرست منبع

!166 【更新】solon 版本升为 2.0.0
Merge pull request !166 from 西东/dev

铂赛东 2 سال پیش
والد
کامیت
3e67fe8d98
2فایلهای تغییر یافته به همراه3 افزوده شده و 3 حذف شده
  1. 2 2
      liteflow-solon-plugin/src/main/java/com/yomahub/liteflow/solon/integration/XPluginImpl.java
  2. 1 1
      pom.xml

+ 2 - 2
liteflow-solon-plugin/src/main/java/com/yomahub/liteflow/solon/integration/XPluginImpl.java

@@ -27,12 +27,12 @@ public class XPluginImpl implements Plugin {
         Properties defProps = Utils.loadProperties("META-INF/liteflow-default.properties");
         if (defProps != null && defProps.size() > 0) {
             defProps.forEach((k, v) -> {
-                context.getProps().putIfAbsent(k, v);
+                context.cfg().putIfAbsent(k, v);
             });
         }
 
         //是否启用
-        boolean enable = context.getProps().getBool("liteflow.enable", false);
+        boolean enable = context.cfg().getBool("liteflow.enable", false);
 
         if (!enable) {
             return;

+ 1 - 1
pom.xml

@@ -64,7 +64,7 @@
 		<bytebuddy.version>1.11.13</bytebuddy.version>
 		<aspectjweaver.version>1.8.13</aspectjweaver.version>
 		<logback-classic.version>1.2.3</logback-classic.version>
-		<solon.version>1.12.0</solon.version>
+		<solon.version>2.0.0</solon.version>
 		<netty.version>4.1.84.Final</netty.version>
 		<guava.version>31.1-jre</guava.version>
 		<httpclient.version>4.5.13</httpclient.version>