commit b8db6fb0d982e522eec2e2dc53f8164f5633bd04 Author: ZhangXushuo <3508242435.com> Date: Sun Nov 19 10:28:03 2023 +0800 Changes diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..869b9b1 --- /dev/null +++ b/.gitignore @@ -0,0 +1,39 @@ +target/ +!.mvn/wrapper/maven-wrapper.jar +!**/src/main/**/target/ +!**/src/test/**/target/ + +### IntelliJ IDEA ### +.idea/modules.xml +.idea/jarRepositories.xml +.idea/compiler.xml +.idea/libraries/ +*.iws +*.iml +*.ipr + +### Eclipse ### +.apt_generated +.classpath +.factorypath +.project +.settings +.springBeans +.sts4-cache + +### NetBeans ### +/nbproject/private/ +/nbbuild/ +/dist/ +/nbdist/ +/.nb-gradle/ +build/ +!**/src/main/**/build/ +!**/src/test/**/build/ + +### VS Code ### +.vscode/ + +### Mac OS ### +.DS_Store +.idea/ diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..73a38de --- /dev/null +++ b/Dockerfile @@ -0,0 +1,19 @@ +# 起始镜像点 +FROM anolis-registry.cn-zhangjiakou.cr.aliyuncs.com/openanolis/openjdk:17-8.6 +# 暴露的端口位置 +EXPOSE 9202/tcp + +# 挂载的目录位置 +VOLUME /home/logs/february-vehicle-trajectory + +# 构建复制外部文件到dcoker内部 +COPY /february-vehicle-server/target/february-vehicle-server.jar /home/app.jar + +# 工作目录 exec -it 进来就是默认这个目录 +WORKDIR /home + +# 指定东八区 +RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone + +# 启动java程序 +CMD ["java","-Dfile.encoding=UTF-8", "-jar", "/home/app.jar"] diff --git a/february-vehicle-common/.gitignore b/february-vehicle-common/.gitignore new file mode 100644 index 0000000..869b9b1 --- /dev/null +++ b/february-vehicle-common/.gitignore @@ -0,0 +1,39 @@ +target/ +!.mvn/wrapper/maven-wrapper.jar +!**/src/main/**/target/ +!**/src/test/**/target/ + +### IntelliJ IDEA ### +.idea/modules.xml +.idea/jarRepositories.xml +.idea/compiler.xml +.idea/libraries/ +*.iws +*.iml +*.ipr + +### Eclipse ### +.apt_generated +.classpath +.factorypath +.project +.settings +.springBeans +.sts4-cache + +### NetBeans ### +/nbproject/private/ +/nbbuild/ +/dist/ +/nbdist/ +/.nb-gradle/ +build/ +!**/src/main/**/build/ +!**/src/test/**/build/ + +### VS Code ### +.vscode/ + +### Mac OS ### +.DS_Store +.idea/ diff --git a/february-vehicle-common/pom.xml b/february-vehicle-common/pom.xml new file mode 100644 index 0000000..c25c594 --- /dev/null +++ b/february-vehicle-common/pom.xml @@ -0,0 +1,67 @@ + + + + com.february + february-vehicle-trajectory + 3.6.3 + + + 3.6.3 + february-vehicle-common + + + 20 + 20 + UTF-8 + + 4.0.0 + + + + + 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} + + + + + com.mysql + mysql-connector-j + + + + + com.february + february-common-swagger + 3.6.3 + + + + diff --git a/february-vehicle-remote/.gitignore b/february-vehicle-remote/.gitignore new file mode 100644 index 0000000..5ff6309 --- /dev/null +++ b/february-vehicle-remote/.gitignore @@ -0,0 +1,38 @@ +target/ +!.mvn/wrapper/maven-wrapper.jar +!**/src/main/**/target/ +!**/src/test/**/target/ + +### IntelliJ IDEA ### +.idea/modules.xml +.idea/jarRepositories.xml +.idea/compiler.xml +.idea/libraries/ +*.iws +*.iml +*.ipr + +### Eclipse ### +.apt_generated +.classpath +.factorypath +.project +.settings +.springBeans +.sts4-cache + +### NetBeans ### +/nbproject/private/ +/nbbuild/ +/dist/ +/nbdist/ +/.nb-gradle/ +build/ +!**/src/main/**/build/ +!**/src/test/**/build/ + +### VS Code ### +.vscode/ + +### Mac OS ### +.DS_Store \ No newline at end of file diff --git a/february-vehicle-remote/pom.xml b/february-vehicle-remote/pom.xml new file mode 100644 index 0000000..d52d41f --- /dev/null +++ b/february-vehicle-remote/pom.xml @@ -0,0 +1,26 @@ + + + 4.0.0 + + com.february + february-vehicle-trajectory + 3.6.3 + + 3.6.3 + february-vehicle-remote + + + 20 + 20 + UTF-8 + + + + com.february + february-vehicle-common + 3.6.3 + + + diff --git a/february-vehicle-server/.gitignore b/february-vehicle-server/.gitignore new file mode 100644 index 0000000..5ff6309 --- /dev/null +++ b/february-vehicle-server/.gitignore @@ -0,0 +1,38 @@ +target/ +!.mvn/wrapper/maven-wrapper.jar +!**/src/main/**/target/ +!**/src/test/**/target/ + +### IntelliJ IDEA ### +.idea/modules.xml +.idea/jarRepositories.xml +.idea/compiler.xml +.idea/libraries/ +*.iws +*.iml +*.ipr + +### Eclipse ### +.apt_generated +.classpath +.factorypath +.project +.settings +.springBeans +.sts4-cache + +### NetBeans ### +/nbproject/private/ +/nbbuild/ +/dist/ +/nbdist/ +/.nb-gradle/ +build/ +!**/src/main/**/build/ +!**/src/test/**/build/ + +### VS Code ### +.vscode/ + +### Mac OS ### +.DS_Store \ No newline at end of file diff --git a/february-vehicle-server/pom.xml b/february-vehicle-server/pom.xml new file mode 100644 index 0000000..a803cb3 --- /dev/null +++ b/february-vehicle-server/pom.xml @@ -0,0 +1,72 @@ + + + 4.0.0 + + + com.february + february-vehicle-trajectory + 3.6.3 + + com.february + 3.6.3 + february-vehicle-server + + + 20 + 20 + UTF-8 + + + + + com.february + february-vehicle-remote + 3.6.3 + compile + + + + com.february + february-vehicle-remote + 3.6.3 + compile + + + + com.february + february-common-log + 3.6.3 + + + + com.february + february-common-datascope + 3.6.3 + + + + com.february + february-common-datasource + 3.6.3 + + + + + ${project.artifactId} + + + org.springframework.boot + spring-boot-maven-plugin + + + + repackage + + + + + + + diff --git a/february-vehicle-server/src/main/java/com/february/Main.java b/february-vehicle-server/src/main/java/com/february/Main.java new file mode 100644 index 0000000..1d2e6c4 --- /dev/null +++ b/february-vehicle-server/src/main/java/com/february/Main.java @@ -0,0 +1,11 @@ +package com.february; + +import org.springframework.boot.SpringApplication; +import org.springframework.boot.autoconfigure.SpringBootApplication; + +@SpringBootApplication +public class Main { + public static void main(String[] args) { + SpringApplication.run(Main.class); + } +} diff --git a/pom.xml b/pom.xml new file mode 100644 index 0000000..7a40c08 --- /dev/null +++ b/pom.xml @@ -0,0 +1,35 @@ + + + + + com.february + february-modules + 3.6.3 + + + 4.0.0 + 3.6.3 + + + february-vehicle-common + february-vehicle-remote + february-vehicle-server + + february-vehicle-trajectory + pom + + + february-vehicle-trajectory轨迹 + + + + + + maven-releases + maven-releases + http://10.100.1.5:8081/repository/maven-releases/ + + +