From b6054867369567bd5e671e870f4269d3221193b2 Mon Sep 17 00:00:00 2001
From: xuyang <748613696@qq.com>
Date: Thu, 30 Mar 2023 14:49:30 +0800
Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=BB=BA=E7=89=A9=E8=81=94=E7=BD=91?=
=?UTF-8?q?=E4=BA=A4=E4=BA=92=E9=A1=B9=E7=9B=AE?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
iot-analysis/analysis-api/pom.xml | 75 +++++++++++
iot-analysis/analysis-boot/pom.xml | 120 ++++++++++++++++++
.../analysis/AnalysisBootApplication.java | 25 ++++
.../src/main/resources/bootstrap.yml | 54 ++++++++
.../src/test/java/com/njcn/AppTest.java | 20 +++
iot-analysis/pom.xml | 28 ++++
iot-message/message-api/pom.xml | 30 +++++
iot-message/message-boot/pom.xml | 120 ++++++++++++++++++
.../njcn/message/MessageBootApplication.java | 25 ++++
.../src/main/resources/bootstrap.yml | 54 ++++++++
.../src/test/java/com/njcn/AppTest.java | 20 +++
iot-message/pom.xml | 29 +++++
pom.xml | 2 +
13 files changed, 602 insertions(+)
create mode 100644 iot-analysis/analysis-api/pom.xml
create mode 100644 iot-analysis/analysis-boot/pom.xml
create mode 100644 iot-analysis/analysis-boot/src/main/java/com/njcn/analysis/AnalysisBootApplication.java
create mode 100644 iot-analysis/analysis-boot/src/main/resources/bootstrap.yml
create mode 100644 iot-analysis/analysis-boot/src/test/java/com/njcn/AppTest.java
create mode 100644 iot-analysis/pom.xml
create mode 100644 iot-message/message-api/pom.xml
create mode 100644 iot-message/message-boot/pom.xml
create mode 100644 iot-message/message-boot/src/main/java/com/njcn/message/MessageBootApplication.java
create mode 100644 iot-message/message-boot/src/main/resources/bootstrap.yml
create mode 100644 iot-message/message-boot/src/test/java/com/njcn/AppTest.java
create mode 100644 iot-message/pom.xml
diff --git a/iot-analysis/analysis-api/pom.xml b/iot-analysis/analysis-api/pom.xml
new file mode 100644
index 0000000..3991a9b
--- /dev/null
+++ b/iot-analysis/analysis-api/pom.xml
@@ -0,0 +1,75 @@
+
+
+
+ 4.0.0
+
+ com.njcn
+ analysis-api
+ 1.0.0
+
+ analysis-api
+
+ http://www.example.com
+
+
+ UTF-8
+ 1.7
+ 1.7
+
+
+
+
+ junit
+ junit
+ 4.11
+ test
+
+
+
+
+
+
+
+
+ maven-clean-plugin
+ 3.1.0
+
+
+
+ maven-resources-plugin
+ 3.0.2
+
+
+ maven-compiler-plugin
+ 3.8.0
+
+
+ maven-surefire-plugin
+ 2.22.1
+
+
+ maven-jar-plugin
+ 3.0.2
+
+
+ maven-install-plugin
+ 2.5.2
+
+
+ maven-deploy-plugin
+ 2.8.2
+
+
+
+ maven-site-plugin
+ 3.7.1
+
+
+ maven-project-info-reports-plugin
+ 3.0.0
+
+
+
+
+
diff --git a/iot-analysis/analysis-boot/pom.xml b/iot-analysis/analysis-boot/pom.xml
new file mode 100644
index 0000000..0995223
--- /dev/null
+++ b/iot-analysis/analysis-boot/pom.xml
@@ -0,0 +1,120 @@
+
+
+
+
+ iot-analysis
+ com.njcn
+ 1.0.0
+
+ 4.0.0
+
+ analysis-boot
+
+ analysis-boot
+
+
+ UTF-8
+ 8
+ 8
+
+
+
+
+ com.njcn
+ common-web
+ ${project.version}
+
+
+ com.njcn
+ common-swagger
+ ${project.version}
+
+
+ com.njcn
+ common-core
+ ${project.version}
+
+
+ com.njcn
+ common-db
+ ${project.version}
+
+
+ com.njcn
+ common-poi
+ ${project.version}
+
+
+ com.njcn
+ common-redis
+ 1.0.0
+ compile
+
+
+
+
+ analysisboot
+
+
+ org.apache.maven.plugins
+ maven-compiler-plugin
+ 3.8.0
+
+ -Xlint:unchecked
+
+
+
+ org.springframework.boot
+ spring-boot-maven-plugin
+
+
+ package
+
+ repackage
+
+
+
+
+
+
+ com.spotify
+ docker-maven-plugin
+ 1.0.0
+
+
+
+ build-image
+ ${docker.operate}
+
+ build
+
+
+
+
+
+ http://${docker.repostory}
+
+ ${docker.repostory}/${docker.registry.name}/${project.artifactId}
+
+
+ latest
+
+
+ ${docker.url}
+ ${basedir}/
+
+
+
+ /ROOT
+
+ ${project.build.directory}
+
+ ${project.build.finalName}.jar
+
+
+
+
+
+
+
diff --git a/iot-analysis/analysis-boot/src/main/java/com/njcn/analysis/AnalysisBootApplication.java b/iot-analysis/analysis-boot/src/main/java/com/njcn/analysis/AnalysisBootApplication.java
new file mode 100644
index 0000000..9899e70
--- /dev/null
+++ b/iot-analysis/analysis-boot/src/main/java/com/njcn/analysis/AnalysisBootApplication.java
@@ -0,0 +1,25 @@
+package com.njcn.analysis;
+
+import lombok.extern.slf4j.Slf4j;
+import org.mybatis.spring.annotation.MapperScan;
+import org.springframework.boot.SpringApplication;
+import org.springframework.boot.autoconfigure.SpringBootApplication;
+import org.springframework.cloud.openfeign.EnableFeignClients;
+
+
+/**
+ * @author hongawen
+ * @version 1.0.0
+ * @date 2021年12月09日 20:59
+ */
+@Slf4j
+@MapperScan("com.njcn.**.mapper")
+@EnableFeignClients(basePackages = "com.njcn")
+@SpringBootApplication(scanBasePackages = "com.njcn")
+public class AnalysisBootApplication {
+
+ public static void main(String[] args) {
+ SpringApplication.run(AnalysisBootApplication.class, args);
+ }
+
+}
diff --git a/iot-analysis/analysis-boot/src/main/resources/bootstrap.yml b/iot-analysis/analysis-boot/src/main/resources/bootstrap.yml
new file mode 100644
index 0000000..83706e3
--- /dev/null
+++ b/iot-analysis/analysis-boot/src/main/resources/bootstrap.yml
@@ -0,0 +1,54 @@
+#当前服务的基本信息
+microservice:
+ ename: '@artifactId@'
+ name: '@name@'
+ version: '@version@'
+ sentinel:
+ url: @sentinel.url@
+ gateway:
+ url:
+server:
+ port: 10303
+#feign接口开启服务熔断降级处理
+feign:
+ sentinel:
+ enabled: true
+
+spring:
+ application:
+ name: @artifactId@
+ #nacos注册中心以及配置中心的指定
+ cloud:
+ nacos:
+ discovery:
+ ip: @service.server.url@
+ server-addr: @nacos.url@
+ namespace: @nacos.namespace@
+ config:
+ server-addr: @nacos.url@
+ namespace: @nacos.namespace@
+ file-extension: yaml
+ shared-configs:
+ - data-id: share-config.yaml
+ refresh: true
+ - data-Id: share-config-datasource-db.yaml
+ refresh: true
+ main:
+ allow-bean-definition-overriding: true
+
+
+#项目日志的配置
+logging:
+ config: http://@nacos.url@/nacos/v1/cs/configs?tenant=@nacos.namespace@&group=DEFAULT_GROUP&dataId=logback.xml
+ level:
+ root: info
+
+
+#mybatis配置信息
+mybatis-plus:
+ #别名扫描
+ type-aliases-package: com.njcn.analysis.pojo
+
+
+mqtt:
+ client-id: analysis-boot${random.value}
\ No newline at end of file
diff --git a/iot-analysis/analysis-boot/src/test/java/com/njcn/AppTest.java b/iot-analysis/analysis-boot/src/test/java/com/njcn/AppTest.java
new file mode 100644
index 0000000..a7e14d2
--- /dev/null
+++ b/iot-analysis/analysis-boot/src/test/java/com/njcn/AppTest.java
@@ -0,0 +1,20 @@
+package com.njcn;
+
+import static org.junit.Assert.assertTrue;
+
+import org.junit.Test;
+
+/**
+ * Unit test for simple App.
+ */
+public class AppTest
+{
+ /**
+ * Rigorous Test :-)
+ */
+ @Test
+ public void shouldAnswerWithTrue()
+ {
+ assertTrue( true );
+ }
+}
diff --git a/iot-analysis/pom.xml b/iot-analysis/pom.xml
new file mode 100644
index 0000000..93a321e
--- /dev/null
+++ b/iot-analysis/pom.xml
@@ -0,0 +1,28 @@
+
+
+
+
+ iot
+ com.njcn
+ 1.0.0
+
+ 4.0.0
+
+ iot-analysis
+ pom
+
+ iot-analysis
+ 物解析模块
+
+
+ analysis-api
+ analysis-boot
+
+
+
+ UTF-8
+ 8
+ 8
+
+
diff --git a/iot-message/message-api/pom.xml b/iot-message/message-api/pom.xml
new file mode 100644
index 0000000..01da314
--- /dev/null
+++ b/iot-message/message-api/pom.xml
@@ -0,0 +1,30 @@
+
+
+
+
+ iot-message
+ com.njcn
+ 1.0.0
+
+ 4.0.0
+
+ message-api
+
+ message-api
+
+
+ UTF-8
+ 8
+ 8
+
+
+
+
+ junit
+ junit
+ 4.11
+ test
+
+
+
diff --git a/iot-message/message-boot/pom.xml b/iot-message/message-boot/pom.xml
new file mode 100644
index 0000000..9fa2c18
--- /dev/null
+++ b/iot-message/message-boot/pom.xml
@@ -0,0 +1,120 @@
+
+
+
+
+ iot-message
+ com.njcn
+ 1.0.0
+
+ 4.0.0
+
+ message-boot
+
+ message-boot
+
+
+ UTF-8
+ 8
+ 8
+
+
+
+
+ com.njcn
+ common-web
+ ${project.version}
+
+
+ com.njcn
+ common-swagger
+ ${project.version}
+
+
+ com.njcn
+ common-core
+ ${project.version}
+
+
+ com.njcn
+ common-db
+ ${project.version}
+
+
+ com.njcn
+ common-poi
+ ${project.version}
+
+
+ com.njcn
+ common-redis
+ 1.0.0
+ compile
+
+
+
+
+ messageboot
+
+
+ org.apache.maven.plugins
+ maven-compiler-plugin
+ 3.8.0
+
+ -Xlint:unchecked
+
+
+
+ org.springframework.boot
+ spring-boot-maven-plugin
+
+
+ package
+
+ repackage
+
+
+
+
+
+
+ com.spotify
+ docker-maven-plugin
+ 1.0.0
+
+
+
+ build-image
+ ${docker.operate}
+
+ build
+
+
+
+
+
+ http://${docker.repostory}
+
+ ${docker.repostory}/${docker.registry.name}/${project.artifactId}
+
+
+ latest
+
+
+ ${docker.url}
+ ${basedir}/
+
+
+
+ /ROOT
+
+ ${project.build.directory}
+
+ ${project.build.finalName}.jar
+
+
+
+
+
+
+
diff --git a/iot-message/message-boot/src/main/java/com/njcn/message/MessageBootApplication.java b/iot-message/message-boot/src/main/java/com/njcn/message/MessageBootApplication.java
new file mode 100644
index 0000000..ae998e9
--- /dev/null
+++ b/iot-message/message-boot/src/main/java/com/njcn/message/MessageBootApplication.java
@@ -0,0 +1,25 @@
+package com.njcn.message;
+
+import lombok.extern.slf4j.Slf4j;
+import org.mybatis.spring.annotation.MapperScan;
+import org.springframework.boot.SpringApplication;
+import org.springframework.boot.autoconfigure.SpringBootApplication;
+import org.springframework.cloud.openfeign.EnableFeignClients;
+
+
+/**
+ * @author hongawen
+ * @version 1.0.0
+ * @date 2021年12月09日 20:59
+ */
+@Slf4j
+@MapperScan("com.njcn.**.mapper")
+@EnableFeignClients(basePackages = "com.njcn")
+@SpringBootApplication(scanBasePackages = "com.njcn")
+public class MessageBootApplication {
+
+ public static void main(String[] args) {
+ SpringApplication.run(MessageBootApplication.class, args);
+ }
+
+}
diff --git a/iot-message/message-boot/src/main/resources/bootstrap.yml b/iot-message/message-boot/src/main/resources/bootstrap.yml
new file mode 100644
index 0000000..29f3ac9
--- /dev/null
+++ b/iot-message/message-boot/src/main/resources/bootstrap.yml
@@ -0,0 +1,54 @@
+#当前服务的基本信息
+microservice:
+ ename: '@artifactId@'
+ name: '@name@'
+ version: '@version@'
+ sentinel:
+ url: @sentinel.url@
+ gateway:
+ url:
+server:
+ port: 10302
+#feign接口开启服务熔断降级处理
+feign:
+ sentinel:
+ enabled: true
+
+spring:
+ application:
+ name: @artifactId@
+ #nacos注册中心以及配置中心的指定
+ cloud:
+ nacos:
+ discovery:
+ ip: @service.server.url@
+ server-addr: @nacos.url@
+ namespace: @nacos.namespace@
+ config:
+ server-addr: @nacos.url@
+ namespace: @nacos.namespace@
+ file-extension: yaml
+ shared-configs:
+ - data-id: share-config.yaml
+ refresh: true
+ - data-Id: share-config-datasource-db.yaml
+ refresh: true
+ main:
+ allow-bean-definition-overriding: true
+
+
+#项目日志的配置
+logging:
+ config: http://@nacos.url@/nacos/v1/cs/configs?tenant=@nacos.namespace@&group=DEFAULT_GROUP&dataId=logback.xml
+ level:
+ root: info
+
+
+#mybatis配置信息
+mybatis-plus:
+ #别名扫描
+ type-aliases-package: com.njcn.message.pojo
+
+
+mqtt:
+ client-id: message-boot${random.value}
\ No newline at end of file
diff --git a/iot-message/message-boot/src/test/java/com/njcn/AppTest.java b/iot-message/message-boot/src/test/java/com/njcn/AppTest.java
new file mode 100644
index 0000000..a7e14d2
--- /dev/null
+++ b/iot-message/message-boot/src/test/java/com/njcn/AppTest.java
@@ -0,0 +1,20 @@
+package com.njcn;
+
+import static org.junit.Assert.assertTrue;
+
+import org.junit.Test;
+
+/**
+ * Unit test for simple App.
+ */
+public class AppTest
+{
+ /**
+ * Rigorous Test :-)
+ */
+ @Test
+ public void shouldAnswerWithTrue()
+ {
+ assertTrue( true );
+ }
+}
diff --git a/iot-message/pom.xml b/iot-message/pom.xml
new file mode 100644
index 0000000..4e2225e
--- /dev/null
+++ b/iot-message/pom.xml
@@ -0,0 +1,29 @@
+
+
+
+
+ iot
+ com.njcn
+ 1.0.0
+
+ 4.0.0
+
+ iot-message
+ pom
+
+ iot-message
+ 物消息路由模块
+
+
+ message-api
+ message-boot
+
+
+
+ UTF-8
+ 8
+ 8
+
+
+
diff --git a/pom.xml b/pom.xml
index 4f23b32..439c7c8 100644
--- a/pom.xml
+++ b/pom.xml
@@ -23,6 +23,8 @@
1.0.0
iot-access
+ iot-message
+ iot-analysis
iot