Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
T
traffic-signal-platform
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
signal
traffic-signal-platform
Commits
71aa5287
Commit
71aa5287
authored
May 26, 2025
by
zhaowenhao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[feat] 1. 增加demo部署配置
parent
ed0a98f2
Changes
11
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
996 additions
and
1 deletion
+996
-1
pom.xml
pom.xml
+5
-0
pom-demo.xml
signal-control-service/pom-demo.xml
+309
-0
bootstrap-demo.yaml
...al-control-service/src/main/resources/bootstrap-demo.yaml
+15
-0
application-demo.properties
...gn-service/src/main/resources/application-demo.properties
+4
-0
pom-demo.xml
signal-optimize-service/pom-demo.xml
+296
-0
bootstrap-demo.yaml
...l-optimize-service/src/main/resources/bootstrap-demo.yaml
+15
-0
pom-demo.xml
signal-utc-service/pom-demo.xml
+285
-0
RedisConfig.java
...rvice/src/main/java/net/wanji/utc/config/RedisConfig.java
+1
-1
bootstrap-demo.yaml
signal-utc-service/src/main/resources/bootstrap-demo.yaml
+15
-0
pom.xml
wj-common/pom.xml
+28
-0
pom.xml
wj-databus/pom.xml
+23
-0
No files found.
pom.xml
View file @
71aa5287
...
...
@@ -289,6 +289,11 @@
</filesets>
</configuration>
</plugin>
<plugin>
<groupId>
com.google.cloud.tools
</groupId>
<artifactId>
jib-maven-plugin
</artifactId>
<version>
3.4.5
</version>
</plugin>
</plugins>
</pluginManagement>
<plugins>
...
...
signal-control-service/pom-demo.xml
0 → 100644
View file @
71aa5287
<?xml version="1.0" encoding="UTF-8"?>
<project
xmlns=
"http://maven.apache.org/POM/4.0.0"
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation=
"http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
>
<modelVersion>
4.0.0
</modelVersion>
<parent>
<groupId>
net.wanji
</groupId>
<artifactId>
traffic-signal-platform
</artifactId>
<version>
0.2.1
</version>
</parent>
<artifactId>
signal-control-service
</artifactId>
<name>
signal-control-service
</name>
<description>
signal-control-service
</description>
<properties>
<java.version>
1.8
</java.version>
<mybatis.generator.version>
1.3.2
</mybatis.generator.version>
<mysql.connector.version>
5.1.41
</mysql.connector.version>
</properties>
<dependencies>
<!-- 鉴权包 start -->
<!-- actuator包解决起动报documentationPluginsBootstrapper错误问题-->
<dependency>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-actuator
</artifactId>
</dependency>
<dependency>
<groupId>
io.jsonwebtoken
</groupId>
<artifactId>
jjwt
</artifactId>
</dependency>
<dependency>
<groupId>
org.springframework.cloud
</groupId>
<artifactId>
spring-cloud-starter-oauth2
</artifactId>
</dependency>
<dependency>
<groupId>
com.wanji
</groupId>
<artifactId>
identity-client-starter
</artifactId>
<version>
1.2
</version>
<exclusions>
<exclusion>
<artifactId>
springfox-spring-web
</artifactId>
<groupId>
io.springfox
</groupId>
</exclusion>
<exclusion>
<artifactId>
swagger-annotations
</artifactId>
<groupId>
io.swagger
</groupId>
</exclusion>
<exclusion>
<artifactId>
springfox-core
</artifactId>
<groupId>
io.springfox
</groupId>
</exclusion>
</exclusions>
</dependency>
<!-- 鉴权包 end -->
<dependency>
<groupId>
io.swagger
</groupId>
<artifactId>
swagger-annotations
</artifactId>
<version>
1.5.22
</version>
</dependency>
<dependency>
<groupId>
io.springfox
</groupId>
<artifactId>
springfox-core
</artifactId>
<version>
2.9.2
</version>
</dependency>
<dependency>
<groupId>
org.springframework.kafka
</groupId>
<artifactId>
spring-kafka
</artifactId>
</dependency>
<dependency>
<groupId>
net.wanji
</groupId>
<artifactId>
signal-feign-service
</artifactId>
<version>
0.0.2
</version>
</dependency>
<dependency>
<groupId>
net.wanji
</groupId>
<artifactId>
wj-common
</artifactId>
<version>
0.0.2
</version>
<exclusions>
<exclusion>
<artifactId>
mybatis
</artifactId>
<groupId>
org.mybatis
</groupId>
</exclusion>
<exclusion>
<artifactId>
jsqlparser
</artifactId>
<groupId>
com.github.jsqlparser
</groupId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>
net.wanji
</groupId>
<artifactId>
wj-databus
</artifactId>
<version>
0.0.1
</version>
</dependency>
<dependency>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-websocket
</artifactId>
</dependency>
<dependency>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-web
</artifactId>
</dependency>
<dependency>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-freemarker
</artifactId>
</dependency>
<dependency>
<groupId>
com.alibaba
</groupId>
<artifactId>
druid-spring-boot-starter
</artifactId>
</dependency>
<dependency>
<groupId>
org.projectlombok
</groupId>
<artifactId>
lombok
</artifactId>
</dependency>
<dependency>
<groupId>
javax.el
</groupId>
<artifactId>
javax.el-api
</artifactId>
</dependency>
<!-- apache commons-->
<dependency>
<groupId>
commons-io
</groupId>
<artifactId>
commons-io
</artifactId>
</dependency>
<dependency>
<groupId>
commons-collections
</groupId>
<artifactId>
commons-collections
</artifactId>
</dependency>
<dependency>
<groupId>
commons-beanutils
</groupId>
<artifactId>
commons-beanutils
</artifactId>
</dependency>
<dependency>
<groupId>
org.apache.commons
</groupId>
<artifactId>
commons-lang3
</artifactId>
</dependency>
<!-- redis -->
<dependency>
<groupId>
redis.clients
</groupId>
<artifactId>
jedis
</artifactId>
</dependency>
<dependency>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-data-redis
</artifactId>
</dependency>
<!-- ws rs -->
<dependency>
<groupId>
jakarta.ws.rs
</groupId>
<artifactId>
jakarta.ws.rs-api
</artifactId>
</dependency>
<!-- pagehelper -->
<dependency>
<groupId>
com.github.pagehelper
</groupId>
<artifactId>
pagehelper-spring-boot-starter
</artifactId>
</dependency>
<!-- Hutool -->
<dependency>
<groupId>
cn.hutool
</groupId>
<artifactId>
hutool-all
</artifactId>
</dependency>
<!-- Gson -->
<dependency>
<groupId>
com.google.code.gson
</groupId>
<artifactId>
gson
</artifactId>
</dependency>
</dependencies>
<build>
<plugins>
<!-- 编译插件 -->
<plugin>
<groupId>
org.apache.maven.plugins
</groupId>
<artifactId>
maven-compiler-plugin
</artifactId>
<configuration>
<source>
${maven.compiler.source}
</source>
<target>
${maven.compiler.target}
</target>
<compilerArguments>
<encoding>
${project.build.sourceEncoding}
</encoding>
</compilerArguments>
</configuration>
</plugin>
<plugin>
<groupId>
org.apache.maven.plugins
</groupId>
<artifactId>
maven-surefire-plugin
</artifactId>
<configuration>
<skip>
true
</skip>
</configuration>
</plugin>
<plugin>
<groupId>
org.mybatis.generator
</groupId>
<artifactId>
mybatis-generator-maven-plugin
</artifactId>
<version>
${mybatis.generator.version}
</version>
<configuration>
<configurationFile>
${basedir}/src/main/resources/mybatis-generator/generatorConfig.xml
</configurationFile>
<verbose>
true
</verbose>
<overwrite>
true
</overwrite>
</configuration>
<dependencies>
<!-- 数据库驱动 -->
<dependency>
<groupId>
mysql
</groupId>
<artifactId>
mysql-connector-java
</artifactId>
<version>
${mysql.connector.version}
</version>
</dependency>
</dependencies>
</plugin>
<!-- swagger 导出配置 -->
<plugin>
<groupId>
io.github.swagger2markup
</groupId>
<artifactId>
swagger2markup-maven-plugin
</artifactId>
<version>
1.3.3
</version>
<configuration>
<swaggerInput>
http://10.102.1.182:30003/utcsystem/v2/api-docs
</swaggerInput>
<outputDir>
src/docs/asciidoc/generated
</outputDir>
<config>
<swagger2markup.markupLanguage>
ASCIIDOC
</swagger2markup.markupLanguage>
</config>
</configuration>
</plugin>
<plugin>
<groupId>
org.asciidoctor
</groupId>
<artifactId>
asciidoctor-maven-plugin
</artifactId>
<version>
1.5.6
</version>
<configuration>
<sourceDirectory>
src/docs/asciidoc/generated
</sourceDirectory>
<outputDirectory>
src/docs/asciidoc/html
</outputDirectory>
<backend>
html
</backend>
<sourceHighlighter>
coderay
</sourceHighlighter>
<attributes>
<toc>
left
</toc>
</attributes>
</configuration>
</plugin>
<!-- mvn clean package -Dmaven.test.skip=true jib:build -DsendCredentialsOverHttp=true -->
<!-- 使用jib 无需深入学习docker, 无需编写Dockerfile -->
<plugin>
<groupId>
com.google.cloud.tools
</groupId>
<artifactId>
jib-maven-plugin
</artifactId>
<version>
2.5.2
</version>
<!-- 将jib与mvn构建的生命周期绑定 -->
<executions>
<execution>
<id>
build-image
</id>
<phase>
install
</phase>
<goals>
<goal>
build
</goal>
</goals>
</execution>
</executions>
<configuration>
<!--from节点用来设置镜像的基础镜像,相当于Docerkfile中的FROM关键字-->
<from>
<!--使用harbor上的openjdk镜像-->
<image>
${harbor.ip.port}/xinkong/openjdk:8-alpine3.9
</image>
<!--harbor服务器的登录信息-->
<auth>
<username>
admin
</username>
<password>
Wanji300552
</password>
</auth>
</from>
<to>
<!-- <image>${harbor.ip.port}/xinkong/${artifactId}:${version}</image> -->
<image>
10.102.1.163:19443/yanshi/fuzhujuece-${project.artifactId}:${project.version}
</image>
<auth>
<username>
admin
</username>
<password>
zPvb[ifljk17qpT
</password>
</auth>
</to>
<container>
<!--配置jvm虚拟机参数-->
<jvmFlags>
<jvmFlag>
-Xms512m
</jvmFlag>
<jvmFlag>
-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=15116
</jvmFlag>
</jvmFlags>
<!--配置使用的时区-->
<environment>
<TZ>
Asia/Shanghai
</TZ>
<spring.profiles.active>
demo
</spring.profiles.active>
</environment>
<!--要暴露的端口-->
<ports>
<port>
32001
</port>
<port>
15116
</port>
</ports>
<!-- <creationTime>2022-10-14T10:08:59.304+08:00</creationTime>-->
<creationTime>
${maven.build.timestamp}
</creationTime>
<mainClass>
net.wanji.web.SignalApplication
</mainClass>
</container>
<!--可以进行HTTP-->
<allowInsecureRegistries>
true
</allowInsecureRegistries>
</configuration>
</plugin>
</plugins>
</build>
</project>
\ No newline at end of file
signal-control-service/src/main/resources/bootstrap-demo.yaml
0 → 100644
View file @
71aa5287
spring
:
application
:
# dubbo启动需要程序名称
name
:
web
cloud
:
nacos
:
config
:
server-addr
:
10.102.1.163:8848
file-extension
:
yaml
group
:
signal
namespace
:
signal
username
:
nacos
password
:
Wgzonal0sowQjm9
main
:
allow-circular-references
:
true
\ No newline at end of file
signal-feign-service/src/main/resources/application-demo.properties
0 → 100644
View file @
71aa5287
utc.service.url
=
http://fuzhujuece-signal-utc-service:32000/utc
utc.dt.service.url
=
http://10.102.1.182:39002/utc-dt
utc.hisense.service.url
=
http://10.102.1.182:39003/utc-hisense
control.url
=
http://10.102.1.182:32001/web
signal-optimize-service/pom-demo.xml
0 → 100644
View file @
71aa5287
<?xml version="1.0" encoding="UTF-8"?>
<project
xmlns=
"http://maven.apache.org/POM/4.0.0"
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation=
"http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
>
<parent>
<artifactId>
traffic-signal-platform
</artifactId>
<groupId>
net.wanji
</groupId>
<version>
0.2.1
</version>
</parent>
<modelVersion>
4.0.0
</modelVersion>
<artifactId>
signal-optimize-service
</artifactId>
<version>
0.2.1
</version>
<properties>
<java.version>
1.8
</java.version>
<mybatis.generator.version>
1.3.2
</mybatis.generator.version>
<mysql.connector.version>
5.1.41
</mysql.connector.version>
</properties>
<dependencies>
<!-- easyexcel导出 -->
<dependency>
<groupId>
com.alibaba
</groupId>
<artifactId>
easyexcel
</artifactId>
<version>
3.0.1
</version>
</dependency>
<dependency>
<groupId>
org.springframework.kafka
</groupId>
<artifactId>
spring-kafka
</artifactId>
</dependency>
<dependency>
<groupId>
net.wanji
</groupId>
<artifactId>
signal-feign-service
</artifactId>
<version>
0.0.2
</version>
</dependency>
<dependency>
<groupId>
net.wanji
</groupId>
<artifactId>
wj-common
</artifactId>
<version>
0.0.2
</version>
</dependency>
<dependency>
<groupId>
net.wanji
</groupId>
<artifactId>
wj-databus
</artifactId>
<version>
0.0.1
</version>
</dependency>
<dependency>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-websocket
</artifactId>
</dependency>
<dependency>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-web
</artifactId>
</dependency>
<dependency>
<groupId>
com.baomidou
</groupId>
<artifactId>
mybatis-plus-generator
</artifactId>
<version>
${mybatis-plus-version}
</version>
</dependency>
<dependency>
<groupId>
com.baomidou
</groupId>
<artifactId>
dynamic-datasource-spring-boot-starter
</artifactId>
<version>
${mybatis-plus-version}
</version>
</dependency>
<!-- MP相关 end -->
<dependency>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-freemarker
</artifactId>
</dependency>
<dependency>
<groupId>
com.alibaba
</groupId>
<artifactId>
druid-spring-boot-starter
</artifactId>
</dependency>
<dependency>
<groupId>
org.projectlombok
</groupId>
<artifactId>
lombok
</artifactId>
</dependency>
<!-- apache commons-->
<dependency>
<groupId>
commons-io
</groupId>
<artifactId>
commons-io
</artifactId>
</dependency>
<dependency>
<groupId>
commons-collections
</groupId>
<artifactId>
commons-collections
</artifactId>
</dependency>
<dependency>
<groupId>
commons-beanutils
</groupId>
<artifactId>
commons-beanutils
</artifactId>
</dependency>
<dependency>
<groupId>
org.apache.commons
</groupId>
<artifactId>
commons-lang3
</artifactId>
</dependency>
<!-- redis -->
<dependency>
<groupId>
redis.clients
</groupId>
<artifactId>
jedis
</artifactId>
</dependency>
<dependency>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-data-redis
</artifactId>
</dependency>
<!-- ws rs -->
<dependency>
<groupId>
jakarta.ws.rs
</groupId>
<artifactId>
jakarta.ws.rs-api
</artifactId>
</dependency>
<!-- pagehelper -->
<dependency>
<groupId>
com.github.pagehelper
</groupId>
<artifactId>
pagehelper-spring-boot-starter
</artifactId>
</dependency>
<!-- Hutool -->
<dependency>
<groupId>
cn.hutool
</groupId>
<artifactId>
hutool-all
</artifactId>
</dependency>
<!-- Gson -->
<dependency>
<groupId>
com.google.code.gson
</groupId>
<artifactId>
gson
</artifactId>
</dependency>
</dependencies>
<build>
<plugins>
<!-- 编译插件 -->
<plugin>
<groupId>
org.apache.maven.plugins
</groupId>
<artifactId>
maven-compiler-plugin
</artifactId>
<configuration>
<source>
${maven.compiler.source}
</source>
<target>
${maven.compiler.target}
</target>
<compilerArguments>
<encoding>
${project.build.sourceEncoding}
</encoding>
</compilerArguments>
</configuration>
</plugin>
<plugin>
<groupId>
org.apache.maven.plugins
</groupId>
<artifactId>
maven-surefire-plugin
</artifactId>
<configuration>
<skip>
true
</skip>
</configuration>
</plugin>
<plugin>
<groupId>
org.mybatis.generator
</groupId>
<artifactId>
mybatis-generator-maven-plugin
</artifactId>
<version>
${mybatis.generator.version}
</version>
<configuration>
<configurationFile>
${basedir}/src/main/resources/mybatis-generator/generatorConfig.xml
</configurationFile>
<verbose>
true
</verbose>
<overwrite>
true
</overwrite>
</configuration>
<dependencies>
<!-- 数据库驱动 -->
<dependency>
<groupId>
mysql
</groupId>
<artifactId>
mysql-connector-java
</artifactId>
<version>
${mysql.connector.version}
</version>
</dependency>
</dependencies>
</plugin>
<!-- swagger 导出配置 -->
<plugin>
<groupId>
io.github.swagger2markup
</groupId>
<artifactId>
swagger2markup-maven-plugin
</artifactId>
<version>
1.3.3
</version>
<configuration>
<swaggerInput>
http://10.102.1.182:30003/utcsystem/v2/api-docs
</swaggerInput>
<outputDir>
src/docs/asciidoc/generated
</outputDir>
<config>
<swagger2markup.markupLanguage>
ASCIIDOC
</swagger2markup.markupLanguage>
</config>
</configuration>
</plugin>
<plugin>
<groupId>
org.asciidoctor
</groupId>
<artifactId>
asciidoctor-maven-plugin
</artifactId>
<version>
1.5.6
</version>
<configuration>
<sourceDirectory>
src/docs/asciidoc/generated
</sourceDirectory>
<outputDirectory>
src/docs/asciidoc/html
</outputDirectory>
<backend>
html
</backend>
<sourceHighlighter>
coderay
</sourceHighlighter>
<attributes>
<toc>
left
</toc>
</attributes>
</configuration>
</plugin>
<!-- mvn clean package -Dmaven.test.skip=true jib:build -DsendCredentialsOverHttp=true -->
<!-- 使用jib 无需深入学习docker, 无需编写Dockerfile -->
<plugin>
<groupId>
com.google.cloud.tools
</groupId>
<artifactId>
jib-maven-plugin
</artifactId>
<version>
2.5.2
</version>
<configuration>
<!--from节点用来设置镜像的基础镜像,相当于Docerkfile中的FROM关键字-->
<from>
<!--使用harbor上的openjdk镜像-->
<!--<image>${harbor.ip.port}/xinkong/openjdk:8-alpine3.9</image>-->
<image>
${harbor.ip.port}/xinkong/centos7-jdk8-rpm:1.0
</image>
<!--harbor服务器的登录信息-->
<auth>
<username>
admin
</username>
<password>
Wanji300552
</password>
</auth>
</from>
<to>
<!-- <image>${harbor.ip.port}/xinkong/${artifactId}:${version}</image> -->
<image>
10.102.1.163:19443/yanshi/fuzhujuece-${project.artifactId}:${project.version}
</image>
<auth>
<username>
admin
</username>
<password>
zPvb[ifljk17qpT
</password>
</auth>
</to>
<container>
<!--配置jvm虚拟机参数-->
<jvmFlags>
<jvmFlag>
-Xms512m
</jvmFlag>
<jvmFlag>
-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=15117
</jvmFlag>
</jvmFlags>
<!--添加RPM包-->
<!--rpm -i /rpms/glibc-common-2.17-326.el7_9.3.x86_64.rpm --force &&-->
<!--rpm -i /rpms/nspr-4.35.0-1.el7_9.x86_64.rpm --force &&-->
<!--rpm -i /rpms/nss-util-3.90.0-1.el7_9.x86_64.rpm --force &&-->
<!--rpm -i /rpms/glibc-2.17-326.el7_9.3.i686.rpm --force &&-->
<!--rpm -i /rpms/glibc-2.17-326.el7_9.3.x86_64.rpm --force &&-->
<!--rpm -i /rpms/glibc-headers-2.17-326.el7_9.3.x86_64.rpm --force &&-->
<!--rpm -i /rpms/glibc-devel-2.17-326.el7_9.3.x86_64.rpm --force &&-->
<!--rpm -i /rpms/nss-softokn-freebl-3.90.0-6.el7_9.i686.rpm --force &&-->
<!--rpm -i /rpms/nss-softokn-freebl-3.90.0-6.el7_9.x86_64.rpm --force &&-->
<!--rpm -i /rpms/zlib-1.2.7-21.el7_9.i686.rpm --force &&-->
<!--rpm -i /rpms/libpng-1.5.13-8.el7.i686.rpm --force &&-->
<!--rpm -i /rpms/bzip2-libs-1.0.6-13.el7.i686.rpm --force &&-->
<!--rpm -i /rpms/libuuid-2.23.2-65.el7_9.1.i686.rpm --force &&-->
<!--rpm -i /rpms/expat-2.1.0-15.el7_9.i686.rpm --force &&-->
<!--rpm -i /rpms/freetype-2.8-14.el7_9.1.i686.rpm --force &&-->
<!--<entrypoint>-->
<!--<shell>sh</shell>-->
<!--<option>-c</option>-->
<!--<arg>-->
<!--rpm localinstall /rpms/fontconfig-2.13.0-4.3.el7.i686.rpm --nogpgcheck &&-->
<!--rpm localinstall /rpms/fontconfig-2.13.0-4.3.el7.x86_64.rpm --nogpgcheck &&-->
<!--rpm localinstall /rpms/dejavu-sans-fonts-2.33-6.el7.noarch.rpm --nogpgcheck-->
<!--</arg>-->
<!--</entrypoint>-->
<!--配置使用的时区-->
<environment>
<TZ>
Asia/Shanghai
</TZ>
<spring.profiles.active>
demo
</spring.profiles.active>
<LANG>
en_US.UTF-8
</LANG>
</environment>
<!--要暴露的端口-->
<ports>
<port>
39001
</port>
<port>
15117
</port>
</ports>
<!-- <creationTime>2022-10-14T10:08:59.304+08:00</creationTime>-->
<creationTime>
${maven.build.timestamp}
</creationTime>
<mainClass>
net.wanji.opt.SignalOptimizeApplication
</mainClass>
</container>
<extraDirectories>
<paths>
<path>
<from>
src/main/resources/rpms/
</from>
<into>
/rpms/
</into>
</path>
</paths>
</extraDirectories>
<!--可以进行HTTP-->
<allowInsecureRegistries>
true
</allowInsecureRegistries>
</configuration>
<executions>
<execution>
<phase>
install
</phase>
<goals>
<goal>
build
</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>
\ No newline at end of file
signal-optimize-service/src/main/resources/bootstrap-demo.yaml
0 → 100644
View file @
71aa5287
spring
:
cloud
:
nacos
:
config
:
server-addr
:
10.102.1.163:8848
file-extension
:
yaml
group
:
signal
namespace
:
signal
username
:
nacos
password
:
Wgzonal0sowQjm9
application
:
# dubbo启动需要程序名称
name
:
signal-optimize-service
main
:
allow-circular-references
:
true
signal-utc-service/pom-demo.xml
0 → 100644
View file @
71aa5287
<?xml version="1.0" encoding="UTF-8"?>
<project
xmlns=
"http://maven.apache.org/POM/4.0.0"
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation=
"http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
>
<modelVersion>
4.0.0
</modelVersion>
<parent>
<groupId>
net.wanji
</groupId>
<artifactId>
traffic-signal-platform
</artifactId>
<version>
0.2.1
</version>
</parent>
<groupId>
net.wanji
</groupId>
<artifactId>
signal-utc-service
</artifactId>
<version>
0.2.1
</version>
<name>
signal-utc-service
</name>
<description>
signal-utc-service
</description>
<properties>
<java.version>
1.8
</java.version>
</properties>
<dependencies>
<!-- ElasticSearch依赖 -->
<dependency>
<groupId>
org.elasticsearch.client
</groupId>
<artifactId>
elasticsearch-rest-high-level-client
</artifactId>
</dependency>
<dependency>
<groupId>
org.elasticsearch
</groupId>
<artifactId>
elasticsearch
</artifactId>
</dependency>
<dependency>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-data-elasticsearch
</artifactId>
</dependency>
<dependency>
<groupId>
org.springframework.kafka
</groupId>
<artifactId>
spring-kafka
</artifactId>
</dependency>
<dependency>
<groupId>
net.wanji
</groupId>
<artifactId>
signal-feign-service
</artifactId>
<version>
0.0.2
</version>
</dependency>
<dependency>
<groupId>
net.wanji
</groupId>
<artifactId>
wj-common
</artifactId>
<version>
0.0.2
</version>
<exclusions>
<exclusion>
<artifactId>
mybatis
</artifactId>
<groupId>
org.mybatis
</groupId>
</exclusion>
<exclusion>
<artifactId>
jsqlparser
</artifactId>
<groupId>
com.github.jsqlparser
</groupId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>
net.wanji
</groupId>
<artifactId>
wj-databus
</artifactId>
<version>
0.0.1
</version>
</dependency>
<dependency>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-websocket
</artifactId>
</dependency>
<dependency>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter
</artifactId>
</dependency>
<dependency>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-aop
</artifactId>
</dependency>
<dependency>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-cache
</artifactId>
</dependency>
<dependency>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-web
</artifactId>
</dependency>
<dependency>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-data-redis
</artifactId>
</dependency>
<dependency>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-freemarker
</artifactId>
</dependency>
<dependency>
<groupId>
com.alibaba
</groupId>
<artifactId>
druid-spring-boot-starter
</artifactId>
</dependency>
<dependency>
<groupId>
org.projectlombok
</groupId>
<artifactId>
lombok
</artifactId>
</dependency>
<!-- Hutool -->
<dependency>
<groupId>
cn.hutool
</groupId>
<artifactId>
hutool-all
</artifactId>
</dependency>
<!-- apache commons-->
<dependency>
<groupId>
commons-io
</groupId>
<artifactId>
commons-io
</artifactId>
</dependency>
<dependency>
<groupId>
commons-collections
</groupId>
<artifactId>
commons-collections
</artifactId>
</dependency>
<dependency>
<groupId>
commons-beanutils
</groupId>
<artifactId>
commons-beanutils
</artifactId>
</dependency>
<dependency>
<groupId>
org.apache.commons
</groupId>
<artifactId>
commons-lang3
</artifactId>
</dependency>
<!-- httpclient -->
<dependency>
<groupId>
org.apache.httpcomponents
</groupId>
<artifactId>
httpclient
</artifactId>
</dependency>
<!-- jedis -->
<dependency>
<groupId>
redis.clients
</groupId>
<artifactId>
jedis
</artifactId>
</dependency>
<!-- pagehelper 分页插件 -->
<dependency>
<groupId>
com.github.pagehelper
</groupId>
<artifactId>
pagehelper-spring-boot-starter
</artifactId>
</dependency>
<!-- jersey -->
<dependency>
<groupId>
org.glassfish.jersey.media
</groupId>
<artifactId>
jersey-media-multipart
</artifactId>
<exclusions>
<exclusion>
<artifactId>
javax.ws.rs-api
</artifactId>
<groupId>
javax.ws.rs
</groupId>
</exclusion>
</exclusions>
</dependency>
<!-- 海康SDK,需要Maven私服 -->
<dependency>
<groupId>
com.hikvision
</groupId>
<artifactId>
artemis-sdk
</artifactId>
</dependency>
<!-- 配置类处理器 -->
<dependency>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-configuration-processor
</artifactId>
<optional>
true
</optional>
</dependency>
<dependency>
<groupId>
javax.el
</groupId>
<artifactId>
javax.el-api
</artifactId>
</dependency>
</dependencies>
<build>
<plugins>
<!-- 编译插件 -->
<plugin>
<groupId>
org.apache.maven.plugins
</groupId>
<artifactId>
maven-compiler-plugin
</artifactId>
<configuration>
<source>
${maven.compiler.source}
</source>
<target>
${maven.compiler.target}
</target>
<compilerArguments>
<encoding>
${project.build.sourceEncoding}
</encoding>
</compilerArguments>
</configuration>
</plugin>
<plugin>
<groupId>
org.apache.maven.plugins
</groupId>
<artifactId>
maven-surefire-plugin
</artifactId>
<configuration>
<skip>
true
</skip>
</configuration>
</plugin>
<!-- swagger 导出配置 -->
<plugin>
<groupId>
io.github.swagger2markup
</groupId>
<artifactId>
swagger2markup-maven-plugin
</artifactId>
<version>
1.3.3
</version>
<configuration>
<swaggerInput>
http://10.102.1.182:30003/utcsystem/v2/api-docs
</swaggerInput>
<outputDir>
src/docs/asciidoc/generated
</outputDir>
<config>
<swagger2markup.markupLanguage>
ASCIIDOC
</swagger2markup.markupLanguage>
</config>
</configuration>
</plugin>
<plugin>
<groupId>
org.asciidoctor
</groupId>
<artifactId>
asciidoctor-maven-plugin
</artifactId>
<version>
1.5.6
</version>
<configuration>
<sourceDirectory>
src/docs/asciidoc/generated
</sourceDirectory>
<outputDirectory>
src/docs/asciidoc/html
</outputDirectory>
<backend>
html
</backend>
<sourceHighlighter>
coderay
</sourceHighlighter>
<attributes>
<toc>
left
</toc>
</attributes>
</configuration>
</plugin>
<!-- mvn clean package -Dmaven.test.skip=true jib:build -DsendCredentialsOverHttp=true -->
<!-- 使用jib 无需深入学习docker, 无需编写Dockerfile -->
<plugin>
<groupId>
com.google.cloud.tools
</groupId>
<artifactId>
jib-maven-plugin
</artifactId>
<version>
2.5.2
</version>
<configuration>
<!--from节点用来设置镜像的基础镜像,相当于Docerkfile中的FROM关键字-->
<from>
<!--使用harbor上的openjdk镜像-->
<image>
${harbor.ip.port}/xinkong/openjdk:8
</image>
<!--harbor服务器的登录信息-->
<auth>
<username>
admin
</username>
<password>
Wanji300552
</password>
</auth>
</from>
<to>
<!-- <image>${harbor.ip.port}/xinkong/${artifactId}:${version}</image> -->
<image>
10.102.1.163:19443/yanshi/fuzhujuece-${project.artifactId}:${project.version}
</image>
<auth>
<username>
admin
</username>
<password>
zPvb[ifljk17qpT
</password>
</auth>
</to>
<container>
<!--配置jvm虚拟机参数-->
<jvmFlags>
<jvmFlag>
-Xms512m
</jvmFlag>
<jvmFlag>
-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=15115
</jvmFlag>
</jvmFlags>
<!--配置使用的时区-->
<environment>
<TZ>
Asia/Shanghai
</TZ>
<spring.profiles.active>
demo
</spring.profiles.active>
</environment>
<!--要暴露的端口-->
<ports>
<port>
32000
</port>
<port>
15115
</port>
</ports>
<!-- <creationTime>2022-10-14T10:08:59.304+08:00</creationTime>-->
<creationTime>
${maven.build.timestamp}
</creationTime>
<mainClass>
net.wanji.utc.UtcApplication
</mainClass>
</container>
<!--可以进行HTTP-->
<allowInsecureRegistries>
true
</allowInsecureRegistries>
</configuration>
<executions>
<execution>
<phase>
install
</phase>
<goals>
<goal>
build
</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>
\ No newline at end of file
signal-utc-service/src/main/java/net/wanji/utc/config/RedisConfig.java
View file @
71aa5287
...
...
@@ -119,7 +119,7 @@ public class RedisConfig extends CachingConfigurerSupport {
@Bean
public
Jedis
jedis
()
{
Jedis
jedis
=
new
Jedis
(
redisHost
,
redisPort
);
jedis
.
auth
(
"Wanji300552"
);
jedis
.
auth
(
password
);
return
jedis
;
}
...
...
signal-utc-service/src/main/resources/bootstrap-demo.yaml
0 → 100644
View file @
71aa5287
spring
:
application
:
# dubbo启动需要程序名称
name
:
utc
main
:
allow-circular-references
:
true
cloud
:
nacos
:
config
:
server-addr
:
10.102.1.163:8848
file-extension
:
yaml
group
:
signal
namespace
:
signal
username
:
nacos
password
:
Wgzonal0sowQjm9
\ No newline at end of file
wj-common/pom.xml
View file @
71aa5287
...
...
@@ -558,4 +558,32 @@
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>
com.google.cloud.tools
</groupId>
<artifactId>
jib-maven-plugin
</artifactId>
<configuration>
<!-- we don't want jib to execute on this module -->
<skip>
true
</skip>
</configuration>
</plugin>
<!-- we want this library to be built reproducibly -->
<plugin>
<groupId>
io.github.zlika
</groupId>
<artifactId>
reproducible-build-maven-plugin
</artifactId>
<version>
0.11
</version>
<executions>
<execution>
<id>
run-when-packaged
</id>
<goals>
<goal>
strip-jar
</goal>
</goals>
<phase>
package
</phase>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>
\ No newline at end of file
wj-databus/pom.xml
View file @
71aa5287
...
...
@@ -44,6 +44,29 @@
<build>
<plugins>
<plugin>
<groupId>
com.google.cloud.tools
</groupId>
<artifactId>
jib-maven-plugin
</artifactId>
<configuration>
<!-- we don't want jib to execute on this module -->
<skip>
true
</skip>
</configuration>
</plugin>
<!-- we want this library to be built reproducibly -->
<plugin>
<groupId>
io.github.zlika
</groupId>
<artifactId>
reproducible-build-maven-plugin
</artifactId>
<version>
0.11
</version>
<executions>
<execution>
<id>
run-when-packaged
</id>
<goals>
<goal>
strip-jar
</goal>
</goals>
<phase>
package
</phase>
</execution>
</executions>
</plugin>
<plugin>
<groupId>
org.apache.maven.plugins
</groupId>
<artifactId>
maven-dependency-plugin
</artifactId>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment