Skip to content

Commit 286ce0f

Browse files
committed
🎉 初始化支付demo
1 parent 181afbc commit 286ce0f

File tree

7 files changed

+155
-1
lines changed

7 files changed

+155
-1
lines changed

demo-pay/.gitignore

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
/target/
2+
!.mvn/wrapper/maven-wrapper.jar
3+
4+
### STS ###
5+
.apt_generated
6+
.classpath
7+
.factorypath
8+
.project
9+
.settings
10+
.springBeans
11+
.sts4-cache
12+
13+
### IntelliJ IDEA ###
14+
.idea
15+
*.iws
16+
*.iml
17+
*.ipr
18+
19+
### NetBeans ###
20+
/nbproject/private/
21+
/build/
22+
/nbbuild/
23+
/dist/
24+
/nbdist/
25+
/.nb-gradle/

demo-pay/README.md

Whitespace-only changes.

demo-pay/pom.xml

+85
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,85 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
4+
<modelVersion>4.0.0</modelVersion>
5+
6+
<artifactId>demo-pay</artifactId>
7+
<version>1.0.0-SNAPSHOT</version>
8+
<packaging>jar</packaging>
9+
10+
<name>demo-pay</name>
11+
<description>Demo project for Spring Boot</description>
12+
13+
<parent>
14+
<groupId>com.xkcoding</groupId>
15+
<artifactId>spring-boot-demo</artifactId>
16+
<version>1.0.0-SNAPSHOT</version>
17+
</parent>
18+
19+
<properties>
20+
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
21+
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
22+
<java.version>1.8</java.version>
23+
<ijpay.version>2.7.0</ijpay.version>
24+
<zxing.version>3.4.1</zxing.version>
25+
</properties>
26+
27+
<dependencies>
28+
<dependency>
29+
<groupId>org.springframework.boot</groupId>
30+
<artifactId>spring-boot-starter-web</artifactId>
31+
</dependency>
32+
33+
<dependency>
34+
<groupId>org.springframework.boot</groupId>
35+
<artifactId>spring-boot-starter-test</artifactId>
36+
<scope>test</scope>
37+
</dependency>
38+
39+
<dependency>
40+
<groupId>cn.hutool</groupId>
41+
<artifactId>hutool-all</artifactId>
42+
</dependency>
43+
44+
<dependency>
45+
<groupId>com.github.javen205</groupId>
46+
<artifactId>IJPay-All</artifactId>
47+
<version>${ijpay.version}</version>
48+
</dependency>
49+
50+
<dependency>
51+
<groupId>com.google.zxing</groupId>
52+
<artifactId>core</artifactId>
53+
<version>${zxing.version}</version>
54+
</dependency>
55+
56+
<dependency>
57+
<groupId>com.google.zxing</groupId>
58+
<artifactId>javase</artifactId>
59+
<version>${zxing.version}</version>
60+
</dependency>
61+
62+
<dependency>
63+
<groupId>com.alipay.sdk</groupId>
64+
<artifactId>alipay-sdk-java</artifactId>
65+
<version>4.10.159.ALL</version>
66+
</dependency>
67+
68+
<dependency>
69+
<groupId>org.projectlombok</groupId>
70+
<artifactId>lombok</artifactId>
71+
<optional>true</optional>
72+
</dependency>
73+
</dependencies>
74+
75+
<build>
76+
<finalName>demo-pay</finalName>
77+
<plugins>
78+
<plugin>
79+
<groupId>org.springframework.boot</groupId>
80+
<artifactId>spring-boot-maven-plugin</artifactId>
81+
</plugin>
82+
</plugins>
83+
</build>
84+
85+
</project>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
package com.xkcoding.pay;
2+
3+
import org.springframework.boot.SpringApplication;
4+
import org.springframework.boot.autoconfigure.SpringBootApplication;
5+
import org.springframework.web.bind.annotation.RestController;
6+
7+
/**
8+
* <p>
9+
* 启动类
10+
* </p>
11+
*
12+
* @author yangkai.shen
13+
* @date Created in 2020-10-26 11:12
14+
*/
15+
@SpringBootApplication
16+
@RestController
17+
public class SpringBootDemoPayApplication {
18+
19+
public static void main(String[] args) {
20+
SpringApplication.run(SpringBootDemoPayApplication.class, args);
21+
}
22+
23+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
server:
2+
port: 8080
3+
servlet:
4+
context-path: /demo
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
package com.xkcoding.pay;
2+
3+
import org.junit.Test;
4+
import org.junit.runner.RunWith;
5+
import org.springframework.boot.test.context.SpringBootTest;
6+
import org.springframework.test.context.junit4.SpringRunner;
7+
8+
@RunWith(SpringRunner.class)
9+
@SpringBootTest
10+
public class SpringBootDemoPayApplicationTests {
11+
12+
@Test
13+
public void contextLoads() {
14+
}
15+
16+
}

pom.xml

+2-1
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@
6969
<module>demo-elasticsearch-rest-high-level-client</module>
7070
<module>demo-https</module>
7171
<module>demo-flyway</module>
72+
<module>demo-pay</module>
7273
</modules>
7374
<packaging>pom</packaging>
7475

@@ -83,7 +84,7 @@
8384
<maven.compiler.target>1.8</maven.compiler.target>
8485
<spring.boot.version>2.1.0.RELEASE</spring.boot.version>
8586
<mysql.version>8.0.21</mysql.version>
86-
<hutool.version>5.4.1</hutool.version>
87+
<hutool.version>5.4.5</hutool.version>
8788
<guava.version>29.0-jre</guava.version>
8889
<user.agent.version>1.20</user.agent.version>
8990
</properties>

0 commit comments

Comments
 (0)