From 9020bc96fc9dcf10cb1016c539a595ba5259a2fd Mon Sep 17 00:00:00 2001 From: panbaolin <13071138970@163.com> Date: Thu, 28 Aug 2025 16:01:51 +0800 Subject: [PATCH] =?UTF-8?q?1.=E6=B7=BB=E5=8A=A0=E6=95=B0=E6=8D=AE=E5=88=86?= =?UTF-8?q?=E6=9E=90=E5=92=8C=E6=BA=90=E9=A1=B9=E5=A4=84=E7=90=86=E6=A8=A1?= =?UTF-8?q?=E5=9D=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- jeecg-module-data-analyze/pom.xml | 27 +++++++++ .../pom.xml | 27 +++++++++ .../jeecg-data-analyze-start/pom.xml | 36 ++++++++++++ .../JeecgDataAnalyzeCloudApplication.java | 55 ++++++++++++++++++ .../pom.xml | 36 ++++++++++++ ...rceItemReconstructionCloudApplication.java | 56 +++++++++++++++++++ jeecg-server-cloud/pom.xml | 2 + pom.xml | 4 +- 8 files changed, 242 insertions(+), 1 deletion(-) create mode 100644 jeecg-module-data-analyze/pom.xml create mode 100644 jeecg-module-sourceitem-reconstruction/pom.xml create mode 100644 jeecg-server-cloud/jeecg-data-analyze-start/pom.xml create mode 100644 jeecg-server-cloud/jeecg-data-analyze-start/src/main/java/org/jeecg/JeecgDataAnalyzeCloudApplication.java create mode 100644 jeecg-server-cloud/jeecg-sourceitem-reconstruction-start/pom.xml create mode 100644 jeecg-server-cloud/jeecg-sourceitem-reconstruction-start/src/main/java/org/jeecg/JeecgSourceItemReconstructionCloudApplication.java diff --git a/jeecg-module-data-analyze/pom.xml b/jeecg-module-data-analyze/pom.xml new file mode 100644 index 0000000..84d23a2 --- /dev/null +++ b/jeecg-module-data-analyze/pom.xml @@ -0,0 +1,27 @@ + + + 4.0.0 + + org.jeecgframework.boot + jeecg-boot-parent + 3.8.1 + + + jeecg-module-data-analyze + + + 17 + 17 + UTF-8 + + + + + org.jeecgframework.boot + jeecg-boot-base-core + ${jeecgboot.version} + + + \ No newline at end of file diff --git a/jeecg-module-sourceitem-reconstruction/pom.xml b/jeecg-module-sourceitem-reconstruction/pom.xml new file mode 100644 index 0000000..ca7b9b9 --- /dev/null +++ b/jeecg-module-sourceitem-reconstruction/pom.xml @@ -0,0 +1,27 @@ + + + 4.0.0 + + org.jeecgframework.boot + jeecg-boot-parent + 3.8.1 + + + jeecg-module-sourceitem-reconstruction + + + 17 + 17 + UTF-8 + + + + + org.jeecgframework.boot + jeecg-boot-base-core + ${jeecgboot.version} + + + \ No newline at end of file diff --git a/jeecg-server-cloud/jeecg-data-analyze-start/pom.xml b/jeecg-server-cloud/jeecg-data-analyze-start/pom.xml new file mode 100644 index 0000000..81b0ac2 --- /dev/null +++ b/jeecg-server-cloud/jeecg-data-analyze-start/pom.xml @@ -0,0 +1,36 @@ + + + 4.0.0 + + org.jeecgframework.boot + jeecg-server-cloud + 3.8.1 + + + jeecg-data-analyze-start + + + 17 + 17 + UTF-8 + + + + + org.jeecgframework.boot + jeecg-boot-starter3-cloud + + + org.jeecgframework.boot + jeecg-system-cloud-api + ${jeecgboot.version} + + + org.jeecgframework.boot + jeecg-module-data-analyze + ${jeecgboot.version} + + + \ No newline at end of file diff --git a/jeecg-server-cloud/jeecg-data-analyze-start/src/main/java/org/jeecg/JeecgDataAnalyzeCloudApplication.java b/jeecg-server-cloud/jeecg-data-analyze-start/src/main/java/org/jeecg/JeecgDataAnalyzeCloudApplication.java new file mode 100644 index 0000000..666c78f --- /dev/null +++ b/jeecg-server-cloud/jeecg-data-analyze-start/src/main/java/org/jeecg/JeecgDataAnalyzeCloudApplication.java @@ -0,0 +1,55 @@ +package org.jeecg; + +import lombok.RequiredArgsConstructor; +import lombok.extern.slf4j.Slf4j; +import org.jeecg.common.base.BaseMap; +import org.jeecg.common.constant.GlobalConstants; +import org.jeecg.common.util.oConvertUtils; +import org.springframework.boot.CommandLineRunner; +import org.springframework.boot.SpringApplication; +import org.springframework.boot.autoconfigure.SpringBootApplication; +import org.springframework.boot.builder.SpringApplicationBuilder; +import org.springframework.boot.web.servlet.support.SpringBootServletInitializer; +import org.springframework.cloud.openfeign.EnableFeignClients; +import org.springframework.context.ConfigurableApplicationContext; +import org.springframework.core.env.Environment; +import org.springframework.data.redis.core.RedisTemplate; +import java.net.InetAddress; +import java.net.UnknownHostException; + +@Slf4j +@SpringBootApplication +@RequiredArgsConstructor +@EnableFeignClients +public class JeecgDataAnalyzeCloudApplication extends SpringBootServletInitializer implements CommandLineRunner { + + private final RedisTemplate redisTemplate; + + @Override + protected SpringApplicationBuilder configure(SpringApplicationBuilder application) { + return application.sources(JeecgDataAnalyzeCloudApplication.class); + } + + public static void main(String[] args) throws UnknownHostException { + ConfigurableApplicationContext application = SpringApplication.run(JeecgDataAnalyzeCloudApplication.class, args); + Environment env = application.getEnvironment(); + String ip = InetAddress.getLocalHost().getHostAddress(); + String port = env.getProperty("server.port"); + String path = oConvertUtils.getString(env.getProperty("server.servlet.context-path")); + log.info("\n----------------------------------------------------------\n\t" + + "Application data-analyze is running! Access URLs:\n\t" + + "Local: \t\thttp://localhost:" + port + path + "/doc.html\n" + + "External: \thttp://" + ip + ":" + port + path + "/doc.html\n" + + "Swagger文档: \thttp://" + ip + ":" + port + path + "/doc.html\n" + + "----------------------------------------------------------"); + + } + + @Override + public void run(String... args) { + BaseMap params = new BaseMap(); + params.put(GlobalConstants.HANDLER_NAME, GlobalConstants.LODER_ROUDER_HANDLER); + //刷新网关 + redisTemplate.convertAndSend(GlobalConstants.REDIS_TOPIC_NAME, params); + } +} \ No newline at end of file diff --git a/jeecg-server-cloud/jeecg-sourceitem-reconstruction-start/pom.xml b/jeecg-server-cloud/jeecg-sourceitem-reconstruction-start/pom.xml new file mode 100644 index 0000000..88fa1f2 --- /dev/null +++ b/jeecg-server-cloud/jeecg-sourceitem-reconstruction-start/pom.xml @@ -0,0 +1,36 @@ + + + 4.0.0 + + org.jeecgframework.boot + jeecg-server-cloud + 3.8.1 + + + jeecg-sourceitem-reconstruction-start + + + 17 + 17 + UTF-8 + + + + + org.jeecgframework.boot + jeecg-boot-starter3-cloud + + + org.jeecgframework.boot + jeecg-system-cloud-api + ${jeecgboot.version} + + + org.jeecgframework.boot + jeecg-module-sourceitem-reconstruction + ${jeecgboot.version} + + + \ No newline at end of file diff --git a/jeecg-server-cloud/jeecg-sourceitem-reconstruction-start/src/main/java/org/jeecg/JeecgSourceItemReconstructionCloudApplication.java b/jeecg-server-cloud/jeecg-sourceitem-reconstruction-start/src/main/java/org/jeecg/JeecgSourceItemReconstructionCloudApplication.java new file mode 100644 index 0000000..e583ba0 --- /dev/null +++ b/jeecg-server-cloud/jeecg-sourceitem-reconstruction-start/src/main/java/org/jeecg/JeecgSourceItemReconstructionCloudApplication.java @@ -0,0 +1,56 @@ +package org.jeecg; + +import lombok.RequiredArgsConstructor; +import lombok.extern.slf4j.Slf4j; +import org.jeecg.common.base.BaseMap; +import org.jeecg.common.constant.GlobalConstants; +import org.jeecg.common.util.oConvertUtils; +import org.springframework.boot.CommandLineRunner; +import org.springframework.boot.SpringApplication; +import org.springframework.boot.autoconfigure.SpringBootApplication; +import org.springframework.boot.builder.SpringApplicationBuilder; +import org.springframework.boot.web.servlet.support.SpringBootServletInitializer; +import org.springframework.cloud.openfeign.EnableFeignClients; +import org.springframework.context.ConfigurableApplicationContext; +import org.springframework.core.env.Environment; +import org.springframework.data.redis.core.RedisTemplate; + +import java.net.InetAddress; +import java.net.UnknownHostException; + +@Slf4j +@SpringBootApplication +@RequiredArgsConstructor +@EnableFeignClients +public class JeecgSourceItemReconstructionCloudApplication extends SpringBootServletInitializer implements CommandLineRunner { + + private final RedisTemplate redisTemplate; + + @Override + protected SpringApplicationBuilder configure(SpringApplicationBuilder application) { + return application.sources(JeecgSourceItemReconstructionCloudApplication.class); + } + + public static void main(String[] args) throws UnknownHostException { + ConfigurableApplicationContext application = SpringApplication.run(JeecgSourceItemReconstructionCloudApplication.class, args); + Environment env = application.getEnvironment(); + String ip = InetAddress.getLocalHost().getHostAddress(); + String port = env.getProperty("server.port"); + String path = oConvertUtils.getString(env.getProperty("server.servlet.context-path")); + log.info("\n----------------------------------------------------------\n\t" + + "Application STAS-Weather is running! Access URLs:\n\t" + + "Local: \t\thttp://localhost:" + port + path + "/doc.html\n" + + "External: \thttp://" + ip + ":" + port + path + "/doc.html\n" + + "Swagger文档: \thttp://" + ip + ":" + port + path + "/doc.html\n" + + "----------------------------------------------------------"); + + } + + @Override + public void run(String... args) { + BaseMap params = new BaseMap(); + params.put(GlobalConstants.HANDLER_NAME, GlobalConstants.LODER_ROUDER_HANDLER); + //刷新网关 + redisTemplate.convertAndSend(GlobalConstants.REDIS_TOPIC_NAME, params); + } +} \ No newline at end of file diff --git a/jeecg-server-cloud/pom.xml b/jeecg-server-cloud/pom.xml index fc9cc46..7c306b3 100644 --- a/jeecg-server-cloud/pom.xml +++ b/jeecg-server-cloud/pom.xml @@ -21,6 +21,8 @@ jeecg-visual jeecg-weather-start + jeecg-data-analyze-start + jeecg-sourceitem-reconstruction-start \ No newline at end of file diff --git a/pom.xml b/pom.xml index 464405d..bbf4831 100644 --- a/pom.xml +++ b/pom.xml @@ -85,7 +85,9 @@ jeecg-boot-base-core jeecg-module-system jeecg-module-weather - + jeecg-module-data-analyze + jeecg-module-sourceitem-reconstruction +