diff --git a/README.md b/README.md index 57fdf1e..a5cdbeb 100644 --- a/README.md +++ b/README.md @@ -20,6 +20,10 @@ com.zhilian │ └── zhilian-gen // 代码生成 [9202] │ └── zhilian-job // 定时任务 [9203] │ └── zhilian-file // 文件服务 [9300] +│ └── zhilian-online // 车辆网关服务 [9901] +│ └── zhilian-resolver // 报文处理服务 [9902] +│ └── zhilian-business // 业务服务 [9903] +│ └── zhilian-manager // 管理服务 [9904] ├── zhilian-visual // 图形化管理模块 │ └── zhilian-visual-monitor // 监控中心 [9100] ├──pom.xml // 公共依赖 diff --git a/pom.xml b/pom.xml index e13b455..a8edc63 100644 --- a/pom.xml +++ b/pom.xml @@ -207,6 +207,35 @@ ${zhilian.version} + + + com.zhilian + zhilian-business + ${zhilian.version} + + + + + com.zhilian + zhilian-manager + ${zhilian.version} + + + + + + com.zhilian + zhilian-online + ${zhilian.version} + + + + + com.zhilian + zhilian-resolver + ${zhilian.version} + + diff --git a/zhilian-modules/pom.xml b/zhilian-modules/pom.xml index 57f793c..da36d68 100644 --- a/zhilian-modules/pom.xml +++ b/zhilian-modules/pom.xml @@ -13,6 +13,10 @@ zhilian-gen zhilian-job zhilian-file + zhilian-online + zhilian-resolver + zhilian-business + zhilian-manager zhilian-modules diff --git a/zhilian-modules/zhilian-business/pom.xml b/zhilian-modules/zhilian-business/pom.xml new file mode 100644 index 0000000..6e869f8 --- /dev/null +++ b/zhilian-modules/zhilian-business/pom.xml @@ -0,0 +1,109 @@ + + + 4.0.0 + + com.zhilian + zhilian-modules + 3.6.3 + + + zhilian-business + + + 17 + 17 + UTF-8 + + + + + zhilian-business 业务模块 + + + + + + + com.alibaba.cloud + spring-cloud-starter-alibaba-nacos-discovery + + + + + com.alibaba.cloud + spring-cloud-starter-alibaba-nacos-config + + + + + com.alibaba.cloud + spring-cloud-starter-alibaba-sentinel + + + + + org.springframework.boot + spring-boot-starter-actuator + + + + + io.springfox + springfox-swagger-ui + ${swagger.fox.version} + + + + + org.apache.velocity + velocity-engine-core + + + + + com.mysql + mysql-connector-j + + + + + com.zhilian + zhilian-common-log + + + + + com.zhilian + zhilian-common-swagger + + + + + + ${project.artifactId} + + + org.springframework.boot + spring-boot-maven-plugin + + + + repackage + + + + + + + org.apache.maven.plugins + maven-deploy-plugin + + true + + + + + + \ No newline at end of file diff --git a/zhilian-modules/zhilian-business/src/main/resources/banner.txt b/zhilian-modules/zhilian-business/src/main/resources/banner.txt new file mode 100644 index 0000000..0dd5eee --- /dev/null +++ b/zhilian-modules/zhilian-business/src/main/resources/banner.txt @@ -0,0 +1,2 @@ +Spring Boot Version: ${spring-boot.version} +Spring Application Name: ${spring.application.name} diff --git a/zhilian-modules/zhilian-business/src/main/resources/bootstrap.yml b/zhilian-modules/zhilian-business/src/main/resources/bootstrap.yml new file mode 100644 index 0000000..2339518 --- /dev/null +++ b/zhilian-modules/zhilian-business/src/main/resources/bootstrap.yml @@ -0,0 +1,25 @@ +# Tomcat +server: + port: 9903 + +# Spring +spring: + application: + # 应用名称 + name: zhilian-business + profiles: + # 环境配置 + active: dev + cloud: + nacos: + discovery: + # 服务注册地址 + server-addr: 10.10.25.2:8848 + config: + # 配置中心地址 + server-addr: 10.10.25.2:8848 + # 配置文件格式 + file-extension: yml + # 共享配置 + shared-configs: + - application-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension} diff --git a/zhilian-modules/zhilian-business/src/main/resources/logback.xml b/zhilian-modules/zhilian-business/src/main/resources/logback.xml new file mode 100644 index 0000000..bb5581c --- /dev/null +++ b/zhilian-modules/zhilian-business/src/main/resources/logback.xml @@ -0,0 +1,74 @@ + + + + + + + + + + + ${log.pattern} + + + + + + ${log.path}/info.log + + + + ${log.path}/info.%d{yyyy-MM-dd}.log + + 60 + + + ${log.pattern} + + + + INFO + + ACCEPT + + DENY + + + + + ${log.path}/error.log + + + + ${log.path}/error.%d{yyyy-MM-dd}.log + + 60 + + + ${log.pattern} + + + + ERROR + + ACCEPT + + DENY + + + + + + + + + + + + + + + + + + diff --git a/zhilian-modules/zhilian-manager/pom.xml b/zhilian-modules/zhilian-manager/pom.xml new file mode 100644 index 0000000..db757ab --- /dev/null +++ b/zhilian-modules/zhilian-manager/pom.xml @@ -0,0 +1,108 @@ + + + 4.0.0 + + com.zhilian + zhilian-modules + 3.6.3 + + + zhilian-manager + + + 17 + 17 + UTF-8 + + + + zhilian-manager 管理模块 + + + + + + + com.alibaba.cloud + spring-cloud-starter-alibaba-nacos-discovery + + + + + com.alibaba.cloud + spring-cloud-starter-alibaba-nacos-config + + + + + com.alibaba.cloud + spring-cloud-starter-alibaba-sentinel + + + + + org.springframework.boot + spring-boot-starter-actuator + + + + + io.springfox + springfox-swagger-ui + ${swagger.fox.version} + + + + + org.apache.velocity + velocity-engine-core + + + + + com.mysql + mysql-connector-j + + + + + com.zhilian + zhilian-common-log + + + + + com.zhilian + zhilian-common-swagger + + + + + + ${project.artifactId} + + + org.springframework.boot + spring-boot-maven-plugin + + + + repackage + + + + + + + org.apache.maven.plugins + maven-deploy-plugin + + true + + + + + + \ No newline at end of file diff --git a/zhilian-modules/zhilian-manager/src/main/resources/banner.txt b/zhilian-modules/zhilian-manager/src/main/resources/banner.txt new file mode 100644 index 0000000..0dd5eee --- /dev/null +++ b/zhilian-modules/zhilian-manager/src/main/resources/banner.txt @@ -0,0 +1,2 @@ +Spring Boot Version: ${spring-boot.version} +Spring Application Name: ${spring.application.name} diff --git a/zhilian-modules/zhilian-manager/src/main/resources/bootstrap.yml b/zhilian-modules/zhilian-manager/src/main/resources/bootstrap.yml new file mode 100644 index 0000000..28c6815 --- /dev/null +++ b/zhilian-modules/zhilian-manager/src/main/resources/bootstrap.yml @@ -0,0 +1,25 @@ +# Tomcat +server: + port: 9904 + +# Spring +spring: + application: + # 应用名称 + name: zhilian-manager + profiles: + # 环境配置 + active: dev + cloud: + nacos: + discovery: + # 服务注册地址 + server-addr: 10.10.25.2:8848 + config: + # 配置中心地址 + server-addr: 10.10.25.2:8848 + # 配置文件格式 + file-extension: yml + # 共享配置 + shared-configs: + - application-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension} diff --git a/zhilian-modules/zhilian-manager/src/main/resources/logback.xml b/zhilian-modules/zhilian-manager/src/main/resources/logback.xml new file mode 100644 index 0000000..6127c73 --- /dev/null +++ b/zhilian-modules/zhilian-manager/src/main/resources/logback.xml @@ -0,0 +1,74 @@ + + + + + + + + + + + ${log.pattern} + + + + + + ${log.path}/info.log + + + + ${log.path}/info.%d{yyyy-MM-dd}.log + + 60 + + + ${log.pattern} + + + + INFO + + ACCEPT + + DENY + + + + + ${log.path}/error.log + + + + ${log.path}/error.%d{yyyy-MM-dd}.log + + 60 + + + ${log.pattern} + + + + ERROR + + ACCEPT + + DENY + + + + + + + + + + + + + + + + + + diff --git a/zhilian-modules/zhilian-online/pom.xml b/zhilian-modules/zhilian-online/pom.xml new file mode 100644 index 0000000..d4c232f --- /dev/null +++ b/zhilian-modules/zhilian-online/pom.xml @@ -0,0 +1,108 @@ + + + 4.0.0 + + com.zhilian + zhilian-modules + 3.6.3 + + + zhilian-online + + + 17 + 17 + UTF-8 + + + + zhilian-online 车辆网关模块 + + + + + + + com.alibaba.cloud + spring-cloud-starter-alibaba-nacos-discovery + + + + + com.alibaba.cloud + spring-cloud-starter-alibaba-nacos-config + + + + + com.alibaba.cloud + spring-cloud-starter-alibaba-sentinel + + + + + org.springframework.boot + spring-boot-starter-actuator + + + + + io.springfox + springfox-swagger-ui + ${swagger.fox.version} + + + + + org.apache.velocity + velocity-engine-core + + + + + com.mysql + mysql-connector-j + + + + + com.zhilian + zhilian-common-log + + + + + com.zhilian + zhilian-common-swagger + + + + + + ${project.artifactId} + + + org.springframework.boot + spring-boot-maven-plugin + + + + repackage + + + + + + + org.apache.maven.plugins + maven-deploy-plugin + + true + + + + + + \ No newline at end of file diff --git a/zhilian-modules/zhilian-online/src/main/resources/banner.txt b/zhilian-modules/zhilian-online/src/main/resources/banner.txt new file mode 100644 index 0000000..0dd5eee --- /dev/null +++ b/zhilian-modules/zhilian-online/src/main/resources/banner.txt @@ -0,0 +1,2 @@ +Spring Boot Version: ${spring-boot.version} +Spring Application Name: ${spring.application.name} diff --git a/zhilian-modules/zhilian-online/src/main/resources/bootstrap.yml b/zhilian-modules/zhilian-online/src/main/resources/bootstrap.yml new file mode 100644 index 0000000..b1662f9 --- /dev/null +++ b/zhilian-modules/zhilian-online/src/main/resources/bootstrap.yml @@ -0,0 +1,25 @@ +# Tomcat +server: + port: 9901 + +# Spring +spring: + application: + # 应用名称 + name: zhilian-online + profiles: + # 环境配置 + active: dev + cloud: + nacos: + discovery: + # 服务注册地址 + server-addr: 10.10.25.2:8848 + config: + # 配置中心地址 + server-addr: 10.10.25.2:8848 + # 配置文件格式 + file-extension: yml + # 共享配置 + shared-configs: + - application-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension} diff --git a/zhilian-modules/zhilian-online/src/main/resources/logback.xml b/zhilian-modules/zhilian-online/src/main/resources/logback.xml new file mode 100644 index 0000000..5955822 --- /dev/null +++ b/zhilian-modules/zhilian-online/src/main/resources/logback.xml @@ -0,0 +1,74 @@ + + + + + + + + + + + ${log.pattern} + + + + + + ${log.path}/info.log + + + + ${log.path}/info.%d{yyyy-MM-dd}.log + + 60 + + + ${log.pattern} + + + + INFO + + ACCEPT + + DENY + + + + + ${log.path}/error.log + + + + ${log.path}/error.%d{yyyy-MM-dd}.log + + 60 + + + ${log.pattern} + + + + ERROR + + ACCEPT + + DENY + + + + + + + + + + + + + + + + + + diff --git a/zhilian-modules/zhilian-resolver/pom.xml b/zhilian-modules/zhilian-resolver/pom.xml new file mode 100644 index 0000000..8de8713 --- /dev/null +++ b/zhilian-modules/zhilian-resolver/pom.xml @@ -0,0 +1,108 @@ + + + 4.0.0 + + com.zhilian + zhilian-modules + 3.6.3 + + + zhilian-resolver + + + 17 + 17 + UTF-8 + + + + zhilian-resolver 处理模块 + + + + + + + com.alibaba.cloud + spring-cloud-starter-alibaba-nacos-discovery + + + + + com.alibaba.cloud + spring-cloud-starter-alibaba-nacos-config + + + + + com.alibaba.cloud + spring-cloud-starter-alibaba-sentinel + + + + + org.springframework.boot + spring-boot-starter-actuator + + + + + io.springfox + springfox-swagger-ui + ${swagger.fox.version} + + + + + org.apache.velocity + velocity-engine-core + + + + + com.mysql + mysql-connector-j + + + + + com.zhilian + zhilian-common-log + + + + + com.zhilian + zhilian-common-swagger + + + + + + ${project.artifactId} + + + org.springframework.boot + spring-boot-maven-plugin + + + + repackage + + + + + + + org.apache.maven.plugins + maven-deploy-plugin + + true + + + + + + \ No newline at end of file diff --git a/zhilian-modules/zhilian-resolver/src/main/resources/banner.txt b/zhilian-modules/zhilian-resolver/src/main/resources/banner.txt new file mode 100644 index 0000000..0dd5eee --- /dev/null +++ b/zhilian-modules/zhilian-resolver/src/main/resources/banner.txt @@ -0,0 +1,2 @@ +Spring Boot Version: ${spring-boot.version} +Spring Application Name: ${spring.application.name} diff --git a/zhilian-modules/zhilian-resolver/src/main/resources/bootstrap.yml b/zhilian-modules/zhilian-resolver/src/main/resources/bootstrap.yml new file mode 100644 index 0000000..46d4b4d --- /dev/null +++ b/zhilian-modules/zhilian-resolver/src/main/resources/bootstrap.yml @@ -0,0 +1,25 @@ +# Tomcat +server: + port: 9902 + +# Spring +spring: + application: + # 应用名称 + name: zhilian-resolver + profiles: + # 环境配置 + active: dev + cloud: + nacos: + discovery: + # 服务注册地址 + server-addr: 10.10.25.2:8848 + config: + # 配置中心地址 + server-addr: 10.10.25.2:8848 + # 配置文件格式 + file-extension: yml + # 共享配置 + shared-configs: + - application-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension} diff --git a/zhilian-modules/zhilian-resolver/src/main/resources/logback.xml b/zhilian-modules/zhilian-resolver/src/main/resources/logback.xml new file mode 100644 index 0000000..ae84f7e --- /dev/null +++ b/zhilian-modules/zhilian-resolver/src/main/resources/logback.xml @@ -0,0 +1,74 @@ + + + + + + + + + + + ${log.pattern} + + + + + + ${log.path}/info.log + + + + ${log.path}/info.%d{yyyy-MM-dd}.log + + 60 + + + ${log.pattern} + + + + INFO + + ACCEPT + + DENY + + + + + ${log.path}/error.log + + + + ${log.path}/error.%d{yyyy-MM-dd}.log + + 60 + + + ${log.pattern} + + + + ERROR + + ACCEPT + + DENY + + + + + + + + + + + + + + + + + +