com.glancebar.wechat:spring-boot-wechat-autoconfigure

Spring WeChat API Integration.

License

License

Categories

Categories

Spring Boot Container Microservices Auto Application Layer Libs Code Generators config Configuration
GroupId

GroupId

com.glancebar.wechat
ArtifactId

ArtifactId

spring-boot-wechat-autoconfigure
Last Version

Last Version

0.0.2
Release Date

Release Date

Type

Type

jar
Description

Description

Spring WeChat API Integration.

Download spring-boot-wechat-autoconfigure

How to add to project

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

Dependencies

compile (4)

Group / Artifact Type Version
org.springframework.boot : spring-boot jar 2.4.1
org.springframework.boot : spring-boot-actuator-autoconfigure jar 2.4.1
org.springframework.boot : spring-boot-configuration-processor jar 2.4.1
org.jetbrains.kotlin : kotlin-stdlib jar 1.4.21

provided (1)

Group / Artifact Type Version
com.glancebar.wechat : wechat-library jar 0.0.2

test (2)

Group / Artifact Type Version
org.springframework.boot : spring-boot-starter-test jar 2.4.1
org.junit.jupiter : junit-jupiter jar 5.7.0

Project Modules

There are no modules declared in this project.

Spring Wechat

Referencing wechat official document, supplying wechat server client APIs, integrating with spring.

Following this tutorial

Usage

Add Dependency

Gradle:

implementation("com.glancebar.wechat:spring-boot-wechat-starter:0.0.2")

Maven:

<dependency>
  <groupId>com.glancebar.wechat</groupId>
  <artifactId>spring-boot-wechat-starter</artifactId>
  <version>0.0.2</version>
</dependency>

Define Configuation

# resources/application.yml
wechat:
  mini-program:
    app-id: your-app-id
    app-secret: your-app-secret

MiniProgram Login Example

code2Session

@Autowired
lateinit var wechatMiniProgramApi: WechatMiniProgramApi

val code2SessionResult = wechatMiniProgramApi.code2Session("031AXC0w3XU3LV2rqy0w3icRl42AXC0C")

Modules

wechat-library

Define basic request response object, encapsulate basic params and authentication related works.

spring-boot-wechat-autoconfigure

Define beans with condition(if not exists, then auto inject configuration).

spring-boot-wechat-starter

Integrating upwards two library, enabling directly usage in spring boot project.

Versions

Version
0.0.2
0.0.1