From 200c5d973339a7b0931bafcd4ce5004151b34e35 Mon Sep 17 00:00:00 2001 From: ZhangXushuo <3508242435.com> Date: Sun, 19 Nov 2023 11:10:52 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=9D=E5=A7=8B=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 39 ++++++++++ Dockerfile | 19 +++++ february-fault-common/.gitignore | 39 ++++++++++ february-fault-common/pom.xml | 67 +++++++++++++++++ february-fault-remote/.gitignore | 38 ++++++++++ february-fault-remote/pom.xml | 26 +++++++ february-fault-server/.gitignore | 38 ++++++++++ february-fault-server/pom.xml | 72 +++++++++++++++++++ .../src/main/java/com/february/Main.java | 11 +++ pom.xml | 35 +++++++++ 10 files changed, 384 insertions(+) create mode 100644 .gitignore create mode 100644 Dockerfile create mode 100644 february-fault-common/.gitignore create mode 100644 february-fault-common/pom.xml create mode 100644 february-fault-remote/.gitignore create mode 100644 february-fault-remote/pom.xml create mode 100644 february-fault-server/.gitignore create mode 100644 february-fault-server/pom.xml create mode 100644 february-fault-server/src/main/java/com/february/Main.java create mode 100644 pom.xml 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..9e44007 --- /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-fault-information + +# 构建复制外部文件到dcoker内部 +COPY /february-fault-server/target/february-fault-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-fault-common/.gitignore b/february-fault-common/.gitignore new file mode 100644 index 0000000..869b9b1 --- /dev/null +++ b/february-fault-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-fault-common/pom.xml b/february-fault-common/pom.xml new file mode 100644 index 0000000..a797033 --- /dev/null +++ b/february-fault-common/pom.xml @@ -0,0 +1,67 @@ + + + + com.february + february-fault-information + 3.6.3 + + + 3.6.3 + february-fault-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-fault-remote/.gitignore b/february-fault-remote/.gitignore new file mode 100644 index 0000000..5ff6309 --- /dev/null +++ b/february-fault-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-fault-remote/pom.xml b/february-fault-remote/pom.xml new file mode 100644 index 0000000..3b50223 --- /dev/null +++ b/february-fault-remote/pom.xml @@ -0,0 +1,26 @@ + + + 4.0.0 + + com.february + february-fault-information + 3.6.3 + + 3.6.3 + february-fault-remote + + + 20 + 20 + UTF-8 + + + + com.february + february-fault-common + 3.6.3 + + + diff --git a/february-fault-server/.gitignore b/february-fault-server/.gitignore new file mode 100644 index 0000000..5ff6309 --- /dev/null +++ b/february-fault-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-fault-server/pom.xml b/february-fault-server/pom.xml new file mode 100644 index 0000000..b242f44 --- /dev/null +++ b/february-fault-server/pom.xml @@ -0,0 +1,72 @@ + + + 4.0.0 + + + com.february + february-fault-information + 3.6.3 + + com.february + 3.6.3 + february-fault-server + + + 20 + 20 + UTF-8 + + + + + com.february + february-fault-remote + 3.6.3 + compile + + + + com.february + february-fault-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-fault-server/src/main/java/com/february/Main.java b/february-fault-server/src/main/java/com/february/Main.java new file mode 100644 index 0000000..1d2e6c4 --- /dev/null +++ b/february-fault-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..38d71ee --- /dev/null +++ b/pom.xml @@ -0,0 +1,35 @@ + + + + + com.february + february-modules + 3.6.3 + + + 4.0.0 + 3.6.3 + + + february-fault-common + february-fault-remote + february-fault-server + + february-fault-information + pom + + + february-fault-information故障信息 + + + + + + maven-releases + maven-releases + http://10.100.1.5:8081/repository/maven-releases/ + + +