Skip to content

Commit

Permalink
🎉 初始化支付demo
Browse files Browse the repository at this point in the history
  • Loading branch information
xkcoding committed Oct 26, 2020
1 parent 181afbc commit 286ce0f
Show file tree
Hide file tree
Showing 7 changed files with 155 additions and 1 deletion.
25 changes: 25 additions & 0 deletions demo-pay/.gitignore
Original file line number Diff line number Diff line change
@@ -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/
Empty file added demo-pay/README.md
Empty file.
85 changes: 85 additions & 0 deletions demo-pay/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>

<artifactId>demo-pay</artifactId>
<version>1.0.0-SNAPSHOT</version>
<packaging>jar</packaging>

<name>demo-pay</name>
<description>Demo project for Spring Boot</description>

<parent>
<groupId>com.xkcoding</groupId>
<artifactId>spring-boot-demo</artifactId>
<version>1.0.0-SNAPSHOT</version>
</parent>

<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<java.version>1.8</java.version>
<ijpay.version>2.7.0</ijpay.version>
<zxing.version>3.4.1</zxing.version>
</properties>

<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>

<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
</dependency>

<dependency>
<groupId>cn.hutool</groupId>
<artifactId>hutool-all</artifactId>
</dependency>

<dependency>
<groupId>com.github.javen205</groupId>
<artifactId>IJPay-All</artifactId>
<version>${ijpay.version}</version>
</dependency>

<dependency>
<groupId>com.google.zxing</groupId>
<artifactId>core</artifactId>
<version>${zxing.version}</version>
</dependency>

<dependency>
<groupId>com.google.zxing</groupId>
<artifactId>javase</artifactId>
<version>${zxing.version}</version>
</dependency>

<dependency>
<groupId>com.alipay.sdk</groupId>
<artifactId>alipay-sdk-java</artifactId>
<version>4.10.159.ALL</version>
</dependency>

<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<optional>true</optional>
</dependency>
</dependencies>

<build>
<finalName>demo-pay</finalName>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
</plugin>
</plugins>
</build>

</project>
Original file line number Diff line number Diff line change
@@ -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;

/**
* <p>
* 启动类
* </p>
*
* @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);
}

}
4 changes: 4 additions & 0 deletions demo-pay/src/main/resources/application.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
server:
port: 8080
servlet:
context-path: /demo
Original file line number Diff line number Diff line change
@@ -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() {
}

}
3 changes: 2 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@
<module>demo-elasticsearch-rest-high-level-client</module>
<module>demo-https</module>
<module>demo-flyway</module>
<module>demo-pay</module>
</modules>
<packaging>pom</packaging>

Expand All @@ -83,7 +84,7 @@
<maven.compiler.target>1.8</maven.compiler.target>
<spring.boot.version>2.1.0.RELEASE</spring.boot.version>
<mysql.version>8.0.21</mysql.version>
<hutool.version>5.4.1</hutool.version>
<hutool.version>5.4.5</hutool.version>
<guava.version>29.0-jre</guava.version>
<user.agent.version>1.20</user.agent.version>
</properties>
Expand Down

0 comments on commit 286ce0f

Please sign in to comment.