From 286ce0f1b75c79bef47e8be122bfedccaa85b496 Mon Sep 17 00:00:00 2001 From: "Yangkai.Shen" <237497819@qq.com> Date: Mon, 26 Oct 2020 11:15:50 +0800 Subject: [PATCH] =?UTF-8?q?:tada:=20=E5=88=9D=E5=A7=8B=E5=8C=96=E6=94=AF?= =?UTF-8?q?=E4=BB=98demo?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- demo-pay/.gitignore | 25 ++++++ demo-pay/README.md | 0 demo-pay/pom.xml | 85 +++++++++++++++++++ .../pay/SpringBootDemoPayApplication.java | 23 +++++ demo-pay/src/main/resources/application.yml | 4 + .../SpringBootDemoPayApplicationTests.java | 16 ++++ pom.xml | 3 +- 7 files changed, 155 insertions(+), 1 deletion(-) create mode 100644 demo-pay/.gitignore create mode 100644 demo-pay/README.md create mode 100644 demo-pay/pom.xml create mode 100644 demo-pay/src/main/java/com/xkcoding/pay/SpringBootDemoPayApplication.java create mode 100644 demo-pay/src/main/resources/application.yml create mode 100644 demo-pay/src/test/java/com/xkcoding/pay/SpringBootDemoPayApplicationTests.java diff --git a/demo-pay/.gitignore b/demo-pay/.gitignore new file mode 100644 index 0000000..82eca33 --- /dev/null +++ b/demo-pay/.gitignore @@ -0,0 +1,25 @@ +/target/ +!.mvn/wrapper/maven-wrapper.jar + +### STS ### +.apt_generated +.classpath +.factorypath +.project +.settings +.springBeans +.sts4-cache + +### IntelliJ IDEA ### +.idea +*.iws +*.iml +*.ipr + +### NetBeans ### +/nbproject/private/ +/build/ +/nbbuild/ +/dist/ +/nbdist/ +/.nb-gradle/ \ No newline at end of file diff --git a/demo-pay/README.md b/demo-pay/README.md new file mode 100644 index 0000000..e69de29 diff --git a/demo-pay/pom.xml b/demo-pay/pom.xml new file mode 100644 index 0000000..0c0c252 --- /dev/null +++ b/demo-pay/pom.xml @@ -0,0 +1,85 @@ + + + 4.0.0 + + demo-pay + 1.0.0-SNAPSHOT + jar + + demo-pay + Demo project for Spring Boot + + + com.xkcoding + spring-boot-demo + 1.0.0-SNAPSHOT + + + + UTF-8 + UTF-8 + 1.8 + 2.7.0 + 3.4.1 + + + + + org.springframework.boot + spring-boot-starter-web + + + + org.springframework.boot + spring-boot-starter-test + test + + + + cn.hutool + hutool-all + + + + com.github.javen205 + IJPay-All + ${ijpay.version} + + + + com.google.zxing + core + ${zxing.version} + + + + com.google.zxing + javase + ${zxing.version} + + + + com.alipay.sdk + alipay-sdk-java + 4.10.159.ALL + + + + org.projectlombok + lombok + true + + + + + demo-pay + + + org.springframework.boot + spring-boot-maven-plugin + + + + + diff --git a/demo-pay/src/main/java/com/xkcoding/pay/SpringBootDemoPayApplication.java b/demo-pay/src/main/java/com/xkcoding/pay/SpringBootDemoPayApplication.java new file mode 100644 index 0000000..a8990fe --- /dev/null +++ b/demo-pay/src/main/java/com/xkcoding/pay/SpringBootDemoPayApplication.java @@ -0,0 +1,23 @@ +package com.xkcoding.pay; + +import org.springframework.boot.SpringApplication; +import org.springframework.boot.autoconfigure.SpringBootApplication; +import org.springframework.web.bind.annotation.RestController; + +/** + *

+ * 启动类 + *

+ * + * @author yangkai.shen + * @date Created in 2020-10-26 11:12 + */ +@SpringBootApplication +@RestController +public class SpringBootDemoPayApplication { + + public static void main(String[] args) { + SpringApplication.run(SpringBootDemoPayApplication.class, args); + } + +} diff --git a/demo-pay/src/main/resources/application.yml b/demo-pay/src/main/resources/application.yml new file mode 100644 index 0000000..a02fbde --- /dev/null +++ b/demo-pay/src/main/resources/application.yml @@ -0,0 +1,4 @@ +server: + port: 8080 + servlet: + context-path: /demo \ No newline at end of file diff --git a/demo-pay/src/test/java/com/xkcoding/pay/SpringBootDemoPayApplicationTests.java b/demo-pay/src/test/java/com/xkcoding/pay/SpringBootDemoPayApplicationTests.java new file mode 100644 index 0000000..6d655a6 --- /dev/null +++ b/demo-pay/src/test/java/com/xkcoding/pay/SpringBootDemoPayApplicationTests.java @@ -0,0 +1,16 @@ +package com.xkcoding.pay; + +import org.junit.Test; +import org.junit.runner.RunWith; +import org.springframework.boot.test.context.SpringBootTest; +import org.springframework.test.context.junit4.SpringRunner; + +@RunWith(SpringRunner.class) +@SpringBootTest +public class SpringBootDemoPayApplicationTests { + + @Test + public void contextLoads() { + } + +} diff --git a/pom.xml b/pom.xml index 93b760b..0110e64 100644 --- a/pom.xml +++ b/pom.xml @@ -69,6 +69,7 @@ demo-elasticsearch-rest-high-level-client demo-https demo-flyway + demo-pay pom @@ -83,7 +84,7 @@ 1.8 2.1.0.RELEASE 8.0.21 - 5.4.1 + 5.4.5 29.0-jre 1.20