commit da0553bae2f24a4dbee04393ee71faa74289d4b6
Author: xuyang <748613696@qq.com>
Date: Thu Mar 30 13:12:17 2023 +0800
新建物联网交互项目
diff --git a/iot-access/access-api/pom.xml b/iot-access/access-api/pom.xml
new file mode 100644
index 0000000..8426020
--- /dev/null
+++ b/iot-access/access-api/pom.xml
@@ -0,0 +1,31 @@
+
+
+
+
+ iot-access
+ com.njcn
+ 1.0.0
+
+ 4.0.0
+
+ access-api
+
+ access-api
+
+
+ UTF-8
+ 8
+ 8
+
+
+
+
+ junit
+ junit
+ 4.11
+ test
+
+
+
+
diff --git a/iot-access/access-boot/pom.xml b/iot-access/access-boot/pom.xml
new file mode 100644
index 0000000..d921655
--- /dev/null
+++ b/iot-access/access-boot/pom.xml
@@ -0,0 +1,120 @@
+
+
+
+
+ iot-access
+ com.njcn
+ 1.0.0
+
+ 4.0.0
+
+ access-boot
+
+ access-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
+
+
+
+
+ accessboot
+
+
+ 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-access/access-boot/src/main/java/com/njcn/access/AccessBootApplication.java b/iot-access/access-boot/src/main/java/com/njcn/access/AccessBootApplication.java
new file mode 100644
index 0000000..aea9d0b
--- /dev/null
+++ b/iot-access/access-boot/src/main/java/com/njcn/access/AccessBootApplication.java
@@ -0,0 +1,25 @@
+package com.njcn.access;
+
+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 AccessBootApplication {
+
+ public static void main(String[] args) {
+ SpringApplication.run(AccessBootApplication.class, args);
+ }
+
+}
diff --git a/iot-access/access-boot/src/main/resources/bootstrap.yml b/iot-access/access-boot/src/main/resources/bootstrap.yml
new file mode 100644
index 0000000..31c96c0
--- /dev/null
+++ b/iot-access/access-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: 10301
+#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.access.pojo
+
+
+mqtt:
+ client-id: access-boot${random.value}
\ No newline at end of file
diff --git a/iot-access/access-boot/src/test/java/com/njcn/AppTest.java b/iot-access/access-boot/src/test/java/com/njcn/AppTest.java
new file mode 100644
index 0000000..a7e14d2
--- /dev/null
+++ b/iot-access/access-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-access/pom.xml b/iot-access/pom.xml
new file mode 100644
index 0000000..9ed7a61
--- /dev/null
+++ b/iot-access/pom.xml
@@ -0,0 +1,83 @@
+
+
+
+
+ iot
+ com.njcn
+ 1.0.0
+
+ 4.0.0
+
+ iot-access
+ pom
+
+ iot-access
+
+ http://www.example.com
+
+ access-api
+ access-boot
+
+
+
+ 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/pom.xml b/pom.xml
new file mode 100644
index 0000000..4f23b32
--- /dev/null
+++ b/pom.xml
@@ -0,0 +1,391 @@
+
+
+
+
+
+ nexus-releases
+ Nexus Release Repository
+ http://192.168.1.13:8001/nexus/content/repositories/releases/
+
+
+ nexus-snapshots
+ Nexus Snapshot Repository
+ http://192.168.1.13:8001/nexus/content/repositories/snapshots/
+
+
+
+ 4.0.0
+
+ com.njcn
+ iot
+ pom
+ 1.0.0
+
+ iot-access
+
+
+ iot
+ 物联网交互模块
+
+
+
+ 192.168.1.18
+
+ 192.168.1.139
+
+ 192.168.1.31
+
+ ${middle.server.url}:18848
+
+ 9a99958c-ed20-439a-8504-0544cea8e520
+
+ ${middle.server.url}:8080
+
+ ${service.server.url}:10215
+
+ http://${docker.server.url}:2375
+
+ ${docker.server.url}:8090
+
+ njcn
+
+ common-microservice
+
+ site
+ 1.8
+ 8
+ 8
+
+ 2.3.12.RELEASE
+ Hoxton.SR12
+ 2.2.7.RELEASE
+ 5.7.9
+ 3.0.2
+ 2.0.8
+ 1.18.18
+ 2.1.3
+ 1.2.5
+ 8.0.19
+ 2.4.0
+ 21.6.0.0
+ 21.1.0.0
+ 3.4.2
+ 3.5.1
+ 1.5.1-RELEASE
+ 3.5.1
+ 2.3
+ 0.9.1
+ 11.2
+ 1.6.4
+ 2.3.2
+ 1.68
+ 3.12.0
+ 2.8.0
+ 1.15
+ 1.8.1
+ 2.12.4
+ 2.2.6
+ 2.18
+ 3.0.0.6
+ 2.8.9
+ 2.3.0
+ 1.2.7
+ 4.4.0
+ 0.5.3
+ 4.8.1
+ 8.2.1
+ 1.7.0-Hoxton
+
+
+
+
+
+ org.springframework.boot
+ spring-boot-dependencies
+ ${springboot.version}
+ pom
+ import
+
+
+ org.springframework.cloud
+ spring-cloud-dependencies
+ ${springcloud.version}
+ pom
+ import
+
+
+ com.alibaba.cloud
+ spring-cloud-alibaba-dependencies
+ ${springcloud.alibaba.version}
+ pom
+ import
+
+
+
+ com.huaweicloud
+ spring-cloud-huawei-dependencies
+ ${spring-cloud-huawei.version}
+ pom
+ import
+
+
+
+
+ cn.hutool
+ hutool-all
+ ${hutool.version}
+
+
+
+ org.projectlombok
+ lombok
+ ${lombok.version}
+
+
+
+ com.github.xiaoymin
+ knife4j-spring-boot-starter
+ ${knife4j.version}
+
+
+ com.github.xiaoymin
+ knife4j-spring-ui
+ ${knife4j.version}
+
+
+ com.github.xiaoymin
+ knife4j-aggregation-spring-boot-starter
+
+ ${knife4j.aggregation.version}
+
+
+
+ org.mybatis.spring.boot
+ mybatis-spring-boot-starter
+ ${mybatis.version}
+
+
+
+ com.alibaba
+ druid-spring-boot-starter
+ ${druid.version}
+
+
+
+ mysql
+ mysql-connector-java
+ ${mysql.version}
+
+
+
+ org.mariadb.jdbc
+ mariadb-java-client
+ ${mariadb.version}
+
+
+
+ com.oracle.database.jdbc
+ ojdbc8
+ ${oracle.version}
+
+
+
+ com.oracle.database.nls
+ orai18n
+ ${orai18n.version}
+
+
+
+ com.baomidou
+ mybatis-plus-boot-starter
+ ${mybatis-plus.version}
+
+
+ com.baomidou
+ mybatis-plus-generator
+ ${mybatis-plus-generator.version}
+
+
+ com.github.jeffreyning
+ mybatisplus-plus
+ ${mybatis-plus.jeffreyning.version}
+
+
+ org.apache.velocity
+ velocity-engine-core
+ ${velocity.version}
+
+
+
+
+ io.jsonwebtoken
+ jjwt
+ ${jjwt.version}
+
+
+
+ io.github.openfeign
+ feign-okhttp
+ ${feignOkhttp.version}
+
+
+
+ org.owasp.antisamy
+ antisamy
+ ${antisamy.version}
+
+
+
+ com.github.penggle
+ kaptcha
+ ${kaptcha.version}
+
+
+
+ org.bouncycastle
+ bcprov-jdk15on
+ ${bcprov-jdk15on.version}
+
+
+
+ org.apache.commons
+ commons-lang3
+ ${commons-lang3.version}
+
+
+ commons-io
+ commons-io
+ ${commons-io.version}
+
+
+ commons-codec
+ commons-codec
+ ${commons-codec.version}
+
+
+ com.alibaba.csp
+ sentinel-datasource-nacos
+ ${sentinel.datasource.nacos.version}
+
+
+
+ com.fasterxml.jackson.core
+ jackson-databind
+ ${jackson}
+
+
+
+ com.fasterxml.jackson.core
+ jackson-core
+ ${jackson}
+
+
+ com.fasterxml.jackson.core
+ jackson-annotations
+ ${jackson}
+
+
+ com.fasterxml.jackson.datatype
+ jackson-datatype-jsr310
+ ${jackson}
+
+
+ com.alibaba
+ easyexcel
+ ${easyexcel}
+
+
+ com.github.abel533
+ ECharts
+ ${echarts.version}
+
+
+
+ com.google.code.gson
+ gson
+ ${gson.version}
+
+
+
+ com.xuxueli
+ xxl-job-core
+ ${xxl-job.version}
+
+
+ com.github.tocrhz
+ mqtt-spring-boot-starter
+ ${mqtt.version}
+
+
+ cn.afterturn
+ easypoi-spring-boot-starter
+ ${easypoi.version}
+
+
+
+ me.tongfei
+ progressbar
+ ${progressbar.version}
+
+
+ com.squareup.okhttp3
+ okhttp
+ ${okhttp.version}
+
+
+ io.minio
+ minio
+ ${minio.version}
+
+
+ com.squareup.okhttp3
+ okhttp
+
+
+
+
+
+ com.baomidou
+ dynamic-datasource-spring-boot-starter
+ ${dynamic-datasource.version}
+
+
+
+
+
+
+
+ org.springframework.boot
+ spring-boot-maven-plugin
+ 2.2.2.RELEASE
+
+ true
+ true
+
+
+
+ org.apache.maven.plugins
+ maven-compiler-plugin
+ 3.1
+
+ 1.8
+ 1.8
+
+
+
+
+
+ src/main/resources
+ true
+
+
+ src/main/java
+
+ **/*.xml
+
+
+
+
+
+