commit f219628257e28dbc682a0779a9449677a6368e44
Author: lwj <3529558005@qq.com>
Date: Mon Jul 29 19:41:56 2024 +0800
初始化
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..3e403e3
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,35 @@
+target/
+!.mvn/wrapper/maven-wrapper.jar
+!**/src/main/**/target/
+!**/src/test/**/target/
+
+### IntelliJ IDEA ###
+.idea
+*.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
diff --git a/.idea/encodings.xml b/.idea/encodings.xml
new file mode 100644
index 0000000..f4e0629
--- /dev/null
+++ b/.idea/encodings.xml
@@ -0,0 +1,16 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/misc.xml b/.idea/misc.xml
new file mode 100644
index 0000000..60003b0
--- /dev/null
+++ b/.idea/misc.xml
@@ -0,0 +1,20 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/qaplug_profiles.xml b/.idea/qaplug_profiles.xml
new file mode 100644
index 0000000..9a7566c
--- /dev/null
+++ b/.idea/qaplug_profiles.xml
@@ -0,0 +1,12 @@
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/vcs.xml b/.idea/vcs.xml
new file mode 100644
index 0000000..94a25f7
--- /dev/null
+++ b/.idea/vcs.xml
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/Dockerfile b/Dockerfile
new file mode 100644
index 0000000..99a00ac
--- /dev/null
+++ b/Dockerfile
@@ -0,0 +1,23 @@
+# |-home
+# |- app.jsp - 启动jar包
+# |- logs - 日志文件
+
+#指定构建镜像的起始镜像
+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-system"]
+
+#拷贝执行jar包文件
+COPY ./cloud-pay-server/target/cloud-pay.jar /home/app.jar
+
+# 构建启动命令
+ENTRYPOINT ["java", "-jar"]
+CMD ["/home/app.jar"]
diff --git a/cloud-pay-client/pom.xml b/cloud-pay-client/pom.xml
new file mode 100644
index 0000000..3952c9c
--- /dev/null
+++ b/cloud-pay-client/pom.xml
@@ -0,0 +1,20 @@
+
+
+ 4.0.0
+
+ com.muyu
+ cloud-pay
+ 1.0.0
+
+
+ cloud-pay-client
+
+
+ 17
+ 17
+ UTF-8
+
+
+
diff --git a/cloud-pay-client/src/main/java/com/muyu/Main.java b/cloud-pay-client/src/main/java/com/muyu/Main.java
new file mode 100644
index 0000000..b347b68
--- /dev/null
+++ b/cloud-pay-client/src/main/java/com/muyu/Main.java
@@ -0,0 +1,17 @@
+package com.muyu;
+
+//TIP 要运行代码,请按 或
+// 点击装订区域中的 图标。
+public class Main {
+ public static void main(String[] args) {
+ //TIP 当文本光标位于高亮显示的文本处时按
+ // 查看 IntelliJ IDEA 建议如何修正。
+ System.out.printf("Hello and welcome!");
+
+ for (int i = 1; i <= 5; i++) {
+ //TIP 按 开始调试代码。我们已经设置了一个 断点
+ // 但您始终可以通过按 添加更多断点。
+ System.out.println("i = " + i);
+ }
+ }
+}
\ No newline at end of file
diff --git a/cloud-pay-common/pom.xml b/cloud-pay-common/pom.xml
new file mode 100644
index 0000000..f90c01f
--- /dev/null
+++ b/cloud-pay-common/pom.xml
@@ -0,0 +1,20 @@
+
+
+ 4.0.0
+
+ com.muyu
+ cloud-pay
+ 1.0.0
+
+
+ cloud-pay-common
+
+
+ 17
+ 17
+ UTF-8
+
+
+
diff --git a/cloud-pay-common/src/main/java/com/muyu/Main.java b/cloud-pay-common/src/main/java/com/muyu/Main.java
new file mode 100644
index 0000000..b347b68
--- /dev/null
+++ b/cloud-pay-common/src/main/java/com/muyu/Main.java
@@ -0,0 +1,17 @@
+package com.muyu;
+
+//TIP 要运行代码,请按 或
+// 点击装订区域中的 图标。
+public class Main {
+ public static void main(String[] args) {
+ //TIP 当文本光标位于高亮显示的文本处时按
+ // 查看 IntelliJ IDEA 建议如何修正。
+ System.out.printf("Hello and welcome!");
+
+ for (int i = 1; i <= 5; i++) {
+ //TIP 按 开始调试代码。我们已经设置了一个 断点
+ // 但您始终可以通过按 添加更多断点。
+ System.out.println("i = " + i);
+ }
+ }
+}
\ No newline at end of file
diff --git a/cloud-pay-remote/pom.xml b/cloud-pay-remote/pom.xml
new file mode 100644
index 0000000..84d77ce
--- /dev/null
+++ b/cloud-pay-remote/pom.xml
@@ -0,0 +1,20 @@
+
+
+ 4.0.0
+
+ com.muyu
+ cloud-pay
+ 1.0.0
+
+
+ cloud-pay-remote
+
+
+ 17
+ 17
+ UTF-8
+
+
+
diff --git a/cloud-pay-remote/src/main/java/com/muyu/Main.java b/cloud-pay-remote/src/main/java/com/muyu/Main.java
new file mode 100644
index 0000000..b347b68
--- /dev/null
+++ b/cloud-pay-remote/src/main/java/com/muyu/Main.java
@@ -0,0 +1,17 @@
+package com.muyu;
+
+//TIP 要运行代码,请按 或
+// 点击装订区域中的 图标。
+public class Main {
+ public static void main(String[] args) {
+ //TIP 当文本光标位于高亮显示的文本处时按
+ // 查看 IntelliJ IDEA 建议如何修正。
+ System.out.printf("Hello and welcome!");
+
+ for (int i = 1; i <= 5; i++) {
+ //TIP 按 开始调试代码。我们已经设置了一个 断点
+ // 但您始终可以通过按 添加更多断点。
+ System.out.println("i = " + i);
+ }
+ }
+}
\ No newline at end of file
diff --git a/cloud-pay-server/pom.xml b/cloud-pay-server/pom.xml
new file mode 100644
index 0000000..c952399
--- /dev/null
+++ b/cloud-pay-server/pom.xml
@@ -0,0 +1,108 @@
+
+
+ 4.0.0
+
+ com.muyu
+ cloud-pay
+ 1.0.0
+
+
+ cloud-pay-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
+
+
+
+
+ cloud-pay
+
+
+ org.springframework.boot
+ spring-boot-maven-plugin
+
+
+
+ repackage
+
+
+
+
+
+
+ org.apache.maven.plugins
+ maven-deploy-plugin
+
+ true
+
+
+
+
+
+
diff --git a/cloud-pay-server/src/main/java/com/muyu/cloud/pay/MuYuPayApplication.java b/cloud-pay-server/src/main/java/com/muyu/cloud/pay/MuYuPayApplication.java
new file mode 100644
index 0000000..3150d70
--- /dev/null
+++ b/cloud-pay-server/src/main/java/com/muyu/cloud/pay/MuYuPayApplication.java
@@ -0,0 +1,17 @@
+package com.muyu.cloud.pay;
+
+import com.muyu.common.security.annotation.EnableCustomConfig;
+import com.muyu.common.security.annotation.EnableMyFeignClients;
+import org.springframework.boot.SpringApplication;
+import org.springframework.boot.autoconfigure.SpringBootApplication;
+
+
+@EnableCustomConfig
+@EnableMyFeignClients
+@SpringBootApplication
+public class MuYuPayApplication {
+ public static void main (String[] args) {
+ SpringApplication.run(MuYuPayApplication.class, args);
+ }
+
+}
diff --git a/cloud-pay-server/src/main/java/com/muyu/cloud/pay/controller/TestController.java b/cloud-pay-server/src/main/java/com/muyu/cloud/pay/controller/TestController.java
new file mode 100644
index 0000000..47843e4
--- /dev/null
+++ b/cloud-pay-server/src/main/java/com/muyu/cloud/pay/controller/TestController.java
@@ -0,0 +1,22 @@
+package com.muyu.cloud.pay.controller;
+
+import com.muyu.common.core.domain.Result;
+import org.springframework.web.bind.annotation.GetMapping;
+import org.springframework.web.bind.annotation.PostMapping;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RestController;
+
+@RequestMapping("/text")
+@RestController
+public class TestController {
+
+ @PostMapping
+ public Result post(){
+ return Result.success("测试Post成功");
+ }
+
+ @GetMapping
+ public Result get(){
+ return Result.success("测试Get成功");
+ }
+}
diff --git a/cloud-pay-server/src/main/resources/banner.txt b/cloud-pay-server/src/main/resources/banner.txt
new file mode 100644
index 0000000..0dd5eee
--- /dev/null
+++ b/cloud-pay-server/src/main/resources/banner.txt
@@ -0,0 +1,2 @@
+Spring Boot Version: ${spring-boot.version}
+Spring Application Name: ${spring.application.name}
diff --git a/cloud-pay-server/src/main/resources/bootstrap.yml b/cloud-pay-server/src/main/resources/bootstrap.yml
new file mode 100644
index 0000000..c2710af
--- /dev/null
+++ b/cloud-pay-server/src/main/resources/bootstrap.yml
@@ -0,0 +1,51 @@
+# Tomcat
+server:
+ port: 9701
+
+# nacos线上地址
+nacos:
+ addr: 106.14.148.95:8848
+ user-name: nacos
+ password: nacos
+ namespace: cloud-2112
+
+# Spring
+spring:
+ main:
+ allow-bean-definition-overriding: true
+ application:
+ # 应用名称
+ name: cloud-pay
+ profiles:
+ # 环境配置
+ active: dev
+ cloud:
+ nacos:
+ discovery:
+ # 服务注册地址
+ server-addr: ${nacos.addr}
+ # nacos用户名
+ username: ${nacos.user-name}
+ # nacos密码
+ password: ${nacos.password}
+ # 命名空间
+ namespace: ${nacos.namespace}
+ config:
+ # 服务注册地址
+ server-addr: ${nacos.addr}
+ # nacos用户名
+ username: ${nacos.user-name}
+ # nacos密码
+ password: ${nacos.password}
+ # 命名空间
+ namespace: ${nacos.namespace}
+ # 配置文件格式
+ file-extension: yml
+ # 共享配置
+ shared-configs:
+ # 系统共享配置
+ - application-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension}
+ # 系统环境Config共享配置
+ - application-config-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension}
+ # xxl-job 配置文件
+ - application-xxl-config-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension}
diff --git a/cloud-pay-server/src/main/resources/logback/dev.xml b/cloud-pay-server/src/main/resources/logback/dev.xml
new file mode 100644
index 0000000..a0e16b0
--- /dev/null
+++ b/cloud-pay-server/src/main/resources/logback/dev.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/cloud-pay-server/src/main/resources/logback/prod.xml b/cloud-pay-server/src/main/resources/logback/prod.xml
new file mode 100644
index 0000000..afd0098
--- /dev/null
+++ b/cloud-pay-server/src/main/resources/logback/prod.xml
@@ -0,0 +1,81 @@
+
+
+
+
+
+
+
+
+
+
+
+ ${log.sky.pattern}
+
+
+
+
+
+ ${log.path}/info.log
+
+
+
+ ${log.path}/info.%d{yyyy-MM-dd}.log
+
+ 60
+
+
+
+
+ INFO
+
+ ACCEPT
+
+ DENY
+
+
+
+
+ ${log.path}/error.log
+
+
+
+ ${log.path}/error.%d{yyyy-MM-dd}.log
+
+ 60
+
+
+
+
+ ERROR
+
+ ACCEPT
+
+ DENY
+
+
+
+
+
+
+
+ ${log.sky.pattern}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/cloud-pay-server/src/main/resources/logback/test.xml b/cloud-pay-server/src/main/resources/logback/test.xml
new file mode 100644
index 0000000..6ca2751
--- /dev/null
+++ b/cloud-pay-server/src/main/resources/logback/test.xml
@@ -0,0 +1,81 @@
+
+
+
+
+
+
+
+
+
+
+
+ ${log.sky.pattern}
+
+
+
+
+
+ ${log.path}/info.log
+
+
+
+ ${log.path}/info.%d{yyyy-MM-dd}.log
+
+ 60
+
+
+
+
+ INFO
+
+ ACCEPT
+
+ DENY
+
+
+
+
+ ${log.path}/error.log
+
+
+
+ ${log.path}/error.%d{yyyy-MM-dd}.log
+
+ 60
+
+
+
+
+ ERROR
+
+ ACCEPT
+
+ DENY
+
+
+
+
+
+
+
+ ${log.sky.pattern}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/pom.xml b/pom.xml
new file mode 100644
index 0000000..fbd54a4
--- /dev/null
+++ b/pom.xml
@@ -0,0 +1,31 @@
+
+
+ 4.0.0
+
+
+ com.muyu
+ cloud-server-parent
+ 3.6.3
+
+
+
+ com.muyu
+ cloud-pay
+ 1.0.0
+ pom
+
+ cloud-pay-server
+ cloud-pay-client
+ cloud-pay-remote
+ cloud-pay-common
+
+
+
+ 17
+ 17
+ UTF-8
+
+
+