Alipay Springboot Starter


License

License

Categories

Categories

Spring Boot Container Microservices
GroupId

GroupId

cc.bable
ArtifactId

ArtifactId

alipay-spring-boot-starter
Last Version

Last Version

1.0.0
Release Date

Release Date

Type

Type

jar
Description

Description

Alipay Springboot Starter
Alipay Springboot Starter
Project URL

Project URL

https://github.com/naixinxiaozi/alipay-spring-boot-starter
Source Code Management

Source Code Management

https://github.com/naixinxiaozi/alipay-spring-boot-starter

Download alipay-spring-boot-starter

How to add to project

<!-- https://jarcasting.com/artifacts/cc.bable/alipay-spring-boot-starter/ -->
<dependency>
    <groupId>cc.bable</groupId>
    <artifactId>alipay-spring-boot-starter</artifactId>
    <version>1.0.0</version>
</dependency>
// https://jarcasting.com/artifacts/cc.bable/alipay-spring-boot-starter/
implementation 'cc.bable:alipay-spring-boot-starter:1.0.0'
// https://jarcasting.com/artifacts/cc.bable/alipay-spring-boot-starter/
implementation ("cc.bable:alipay-spring-boot-starter:1.0.0")
'cc.bable:alipay-spring-boot-starter:jar:1.0.0'
<dependency org="cc.bable" name="alipay-spring-boot-starter" rev="1.0.0">
  <artifact name="alipay-spring-boot-starter" type="jar" />
</dependency>
@Grapes(
@Grab(group='cc.bable', module='alipay-spring-boot-starter', version='1.0.0')
)
libraryDependencies += "cc.bable" % "alipay-spring-boot-starter" % "1.0.0"
[cc.bable/alipay-spring-boot-starter "1.0.0"]

Dependencies

compile (3)

Group / Artifact Type Version
com.alipay.sdk : alipay-sdk-java jar 3.4.27.ALL
org.springframework.boot : spring-boot jar
org.slf4j : slf4j-api jar

Project Modules

There are no modules declared in this project.

alipay-spring-boot-starter

spring boot 2 环境下支付宝的开箱既用环境

使用场景

spring boot应用中需要接入支付宝

开始使用

1.pom.xml中引入依赖

<dependency>
    <groupId>cc.bable</groupId>
    <artifactId>alipay-spring-boot-starter</artifactId>
    <version>1.0.0</version>
</dependency>

2.application.yml中增加配置

alipay:
  dev: false #默认false,为true表示使用沙箱环境
  sign-type: RSA2 #签名算法
  app-id: #应用ID
  private-key: #应用私钥
  alipay-public-key: #支付宝公钥
  notify-url: 支付宝异步通知地址(需要匿名可以访问)
  return-url: 同步跳转地址

3.增加控制器实现


Versions

Version
1.0.0