commit 7c247abe68d7121983e0d8ef824d63c4ae370d2e Author: zzh <2441574824@qq.com> Date: Tue Aug 20 22:03:12 2024 +0800 初始化 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..895de0e --- /dev/null +++ b/.gitignore @@ -0,0 +1,31 @@ +target/ +!.mvn/wrapper/maven-wrapper.jar +!**/src/main/**/target/ +!**/src/test/**/target/ + +### IntelliJ IDEA ### +.idea/ +### 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 diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..76106ae --- /dev/null +++ b/Dockerfile @@ -0,0 +1,16 @@ +#指定构建镜像的起始镜像 +FROM anolis-registry.cn-zhangjiakou.cr.aliyuncs.com/openanolis/dragonwell:17.0.4.0.4.8-standard-ga-8.6 +#定义时区参数 +ENV TZ=Asia/Shanghai +#设置时区 +RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo '$TZ' > /etc/timezone + +#挂载目录 +VOLUME ["/home/logs/cloud-market"] + +#拷贝执行jar报 +COPY ./cloud-market-server/target/cloud-market.jar /home/app.jar + +ENTRYPOINT ["java","-Dfile.encoding=utf-8","-jar"] + +CMD ["/home/app.jar"] diff --git a/cloud-market-client/pom.xml b/cloud-market-client/pom.xml new file mode 100644 index 0000000..be4872e --- /dev/null +++ b/cloud-market-client/pom.xml @@ -0,0 +1,27 @@ + + + 4.0.0 + + com.muyu + cloud-market + 1.0.0 + + + cloud-market-client + + + 17 + 17 + UTF-8 + + + + + com.muyu + cloud-market-common + + + + diff --git a/cloud-market-client/src/main/java/com/muyu/Main.java b/cloud-market-client/src/main/java/com/muyu/Main.java new file mode 100644 index 0000000..0e846a4 --- /dev/null +++ b/cloud-market-client/src/main/java/com/muyu/Main.java @@ -0,0 +1,13 @@ +package com.muyu; + +/** + * @Author:zhangzhihao + * @name:${NAME} + * @Date:2024/8/20 21:48 + * 不准抄代码,添加注释,清楚每一行代码意思 + */ +public class Main { + public static void main(String[] args) { + System.out.println("Hello world!"); + } +} diff --git a/cloud-market-common/pom.xml b/cloud-market-common/pom.xml new file mode 100644 index 0000000..085685c --- /dev/null +++ b/cloud-market-common/pom.xml @@ -0,0 +1,25 @@ + + + 4.0.0 + + com.muyu + cloud-market + 1.0.0 + + + cloud-market-common + + + 17 + 17 + UTF-8 + + + + com.muyu + cloud-common-core + + + diff --git a/cloud-market-common/src/main/java/com/muyu/Main.java b/cloud-market-common/src/main/java/com/muyu/Main.java new file mode 100644 index 0000000..0e846a4 --- /dev/null +++ b/cloud-market-common/src/main/java/com/muyu/Main.java @@ -0,0 +1,13 @@ +package com.muyu; + +/** + * @Author:zhangzhihao + * @name:${NAME} + * @Date:2024/8/20 21:48 + * 不准抄代码,添加注释,清楚每一行代码意思 + */ +public class Main { + public static void main(String[] args) { + System.out.println("Hello world!"); + } +} diff --git a/cloud-market-remote/pom.xml b/cloud-market-remote/pom.xml new file mode 100644 index 0000000..2a4580e --- /dev/null +++ b/cloud-market-remote/pom.xml @@ -0,0 +1,26 @@ + + + 4.0.0 + + com.muyu + cloud-market + 1.0.0 + + + cloud-market-remote + + + 17 + 17 + UTF-8 + + + + + com.muyu + cloud-market-common + + + diff --git a/cloud-market-remote/src/main/java/com/muyu/Main.java b/cloud-market-remote/src/main/java/com/muyu/Main.java new file mode 100644 index 0000000..9c3d105 --- /dev/null +++ b/cloud-market-remote/src/main/java/com/muyu/Main.java @@ -0,0 +1,13 @@ +package com.muyu; + +/** + * @Author:zhangzhihao + * @name:${NAME} + * @Date:2024/8/20 21:49 + * 不准抄代码,添加注释,清楚每一行代码意思 + */ +public class Main { + public static void main(String[] args) { + System.out.println("Hello world!"); + } +} diff --git a/cloud-market-server/pom.xml b/cloud-market-server/pom.xml new file mode 100644 index 0000000..c2a3b30 --- /dev/null +++ b/cloud-market-server/pom.xml @@ -0,0 +1,120 @@ + + + 4.0.0 + + com.muyu + cloud-market + 1.0.0 + + + cloud-market-server + + + 17 + 17 + UTF-8 + + + + + + + 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 + + + + + com.mysql + mysql-connector-j + + + + + com.muyu + cloud-common-datasource + + + + + com.muyu + cloud-common-datascope + + + + + com.muyu + cloud-common-log + + + + + com.muyu + cloud-common-api-doc + + + + + com.muyu + cloud-common-xxl + + + com.muyu + cloud-common-rabbit + + + com.muyu + cloud-market-common + + + com.muyu + cloud-common-nacos-api + + + + + cloud-market + + + org.springframework.boot + spring-boot-maven-plugin + + + + repackage + + + + + + + org.apache.maven.plugins + maven-deploy-plugin + + true + + + + + + diff --git a/cloud-market-server/src/main/java/com/muyu/Main.java b/cloud-market-server/src/main/java/com/muyu/Main.java new file mode 100644 index 0000000..9c3d105 --- /dev/null +++ b/cloud-market-server/src/main/java/com/muyu/Main.java @@ -0,0 +1,13 @@ +package com.muyu; + +/** + * @Author:zhangzhihao + * @name:${NAME} + * @Date:2024/8/20 21:49 + * 不准抄代码,添加注释,清楚每一行代码意思 + */ +public class Main { + public static void main(String[] args) { + System.out.println("Hello world!"); + } +} diff --git a/pom.xml b/pom.xml new file mode 100644 index 0000000..b01c2b9 --- /dev/null +++ b/pom.xml @@ -0,0 +1,28 @@ + + + 4.0.0 + + com.muyu + cloud-server-parent + 3.6.4 + + + cloud-market + 1.0.0 + pom + + cloud-market-client + cloud-market-common + cloud-market-remote + cloud-market-server + + + + 17 + 17 + UTF-8 + + +