From 19009348a0f38d2e0b563a9d32e33e734400d0dd Mon Sep 17 00:00:00 2001 From: zhangzhuo Date: Tue, 22 Mar 2022 18:01:02 +0800 Subject: [PATCH 1/4] =?UTF-8?q?=E4=BF=AE=E6=94=B9readme?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 4 ++++ .../main/java/com/gitee/starblues/example/Application.java | 1 - 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 20c7309..b3a6658 100644 --- a/README.md +++ b/README.md @@ -12,6 +12,10 @@ 3. 打包插件: `mvn clean package` 4. 进入主程序`example-main` 启动 `Application` + +#### 打包生产环境插件包命令 +`mvn clean package -P prod` + #### 目录说明 ```properties example-main: 主程序 diff --git a/example-main/src/main/java/com/gitee/starblues/example/Application.java b/example-main/src/main/java/com/gitee/starblues/example/Application.java index e5ff739..c486222 100644 --- a/example-main/src/main/java/com/gitee/starblues/example/Application.java +++ b/example-main/src/main/java/com/gitee/starblues/example/Application.java @@ -15,7 +15,6 @@ import org.springframework.boot.autoconfigure.SpringBootApplication; public class Application implements SpringBootstrap { public static void main(String[] args) { - //System.setProperty("org.graalvm.nativeimage.imagecode", "111"); SpringMainBootstrap.launch(Application.class, args); } -- Gitee From 6e9dc9f435e7ccb2094ed06e439d147442243bca Mon Sep 17 00:00:00 2001 From: zhangzhuo Date: Wed, 23 Mar 2022 10:47:24 +0800 Subject: [PATCH 2/4] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E7=94=9F=E4=BA=A7?= =?UTF-8?q?=E7=8E=AF=E5=A2=83=E5=AE=89=E8=A3=85=E6=8F=92=E4=BB=B6=E5=BC=82?= =?UTF-8?q?=E5=B8=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- example-main/pom.xml | 2 +- .../example/listener/MyPluginInitializerListener.java | 8 +++++--- example-main/src/main/resources/application-dev.yml | 2 +- example-plugins-basic/pom.xml | 2 +- example-plugins-cloud/pom.xml | 2 +- example-plugins-db/pom.xml | 2 +- 6 files changed, 10 insertions(+), 8 deletions(-) diff --git a/example-main/pom.xml b/example-main/pom.xml index 087dff2..f975178 100644 --- a/example-main/pom.xml +++ b/example-main/pom.xml @@ -16,7 +16,7 @@ 1.8 - 3.0.0 + 3.0.1 2.5.6 diff --git a/example-main/src/main/java/com/gitee/starblues/example/listener/MyPluginInitializerListener.java b/example-main/src/main/java/com/gitee/starblues/example/listener/MyPluginInitializerListener.java index 5a9719c..19a6dee 100644 --- a/example-main/src/main/java/com/gitee/starblues/example/listener/MyPluginInitializerListener.java +++ b/example-main/src/main/java/com/gitee/starblues/example/listener/MyPluginInitializerListener.java @@ -1,6 +1,7 @@ package com.gitee.starblues.example.listener; import com.gitee.starblues.integration.listener.PluginInitializerListener; +import lombok.extern.slf4j.Slf4j; import org.springframework.stereotype.Component; /** @@ -8,19 +9,20 @@ import org.springframework.stereotype.Component; * @version 1.0 */ @Component +@Slf4j public class MyPluginInitializerListener implements PluginInitializerListener { @Override public void before() { - System.out.println("初始化之前"); + log.info("初始化之前"); } @Override public void complete() { - System.out.println("初始化完成"); + log.info("初始化完成"); } @Override public void failure(Throwable throwable) { - System.out.println("初始化失败:"+throwable.getMessage()); + log.info("初始化失败:" + throwable.getMessage()); } } diff --git a/example-main/src/main/resources/application-dev.yml b/example-main/src/main/resources/application-dev.yml index cf7f39a..3b660f1 100644 --- a/example-main/src/main/resources/application-dev.yml +++ b/example-main/src/main/resources/application-dev.yml @@ -22,7 +22,7 @@ mybatis-plus: log-impl: org.apache.ibatis.logging.stdout.StdOutImpl plugin: - runMode: dev + runMode: prod mainPackage: com.gitee.starblues.example # 如果配置是 windows 下路径, mac、linux 自行修改 pluginPath: diff --git a/example-plugins-basic/pom.xml b/example-plugins-basic/pom.xml index af8d7d5..90c68bd 100644 --- a/example-plugins-basic/pom.xml +++ b/example-plugins-basic/pom.xml @@ -22,7 +22,7 @@ 4.13 2.5.6 - 3.0.0 + 3.0.1 3.1.1 diff --git a/example-plugins-cloud/pom.xml b/example-plugins-cloud/pom.xml index 8bde0d9..5f9de1e 100644 --- a/example-plugins-cloud/pom.xml +++ b/example-plugins-cloud/pom.xml @@ -21,7 +21,7 @@ 4.13 2.3.12.RELEASE - 3.0.0 + 3.0.1 3.1.1 diff --git a/example-plugins-db/pom.xml b/example-plugins-db/pom.xml index 60e0d7d..73038bd 100644 --- a/example-plugins-db/pom.xml +++ b/example-plugins-db/pom.xml @@ -21,7 +21,7 @@ 1.18.10 4.13 - 3.0.0 + 3.0.1 2.5.6 3.1.1 -- Gitee From 8fa331f83cdcf3f1b059a495902c9a416e978090 Mon Sep 17 00:00:00 2001 From: zhangzhuo Date: Thu, 31 Mar 2022 16:02:54 +0800 Subject: [PATCH 3/4] =?UTF-8?q?=E4=BF=AE=E6=94=B9pom?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- example-main/pom.xml | 1 - 1 file changed, 1 deletion(-) diff --git a/example-main/pom.xml b/example-main/pom.xml index f975178..ed883cc 100644 --- a/example-main/pom.xml +++ b/example-main/pom.xml @@ -107,7 +107,6 @@ - com.gitee.starblues spring-brick-maven-packager -- Gitee From ace798f9c4adf013a94df1accd91fd0696e485bb Mon Sep 17 00:00:00 2001 From: zhangzhuo Date: Thu, 31 Mar 2022 16:03:38 +0800 Subject: [PATCH 4/4] =?UTF-8?q?=E4=BF=AE=E6=94=B9pom?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index b3a6658..b689b4b 100644 --- a/README.md +++ b/README.md @@ -16,6 +16,8 @@ #### 打包生产环境插件包命令 `mvn clean package -P prod` +`windows`测试可参考: `package.bat` + #### 目录说明 ```properties example-main: 主程序 -- Gitee