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

Spring WeChat API Integration.

Лицензия

Лицензия

Категории

Категории

Spring Boot Контейнер Микросервисы
Группа

Группа

com.glancebar.wechat
Идентификатор

Идентификатор

spring-boot-wechat-starter
Последняя версия

Последняя версия

0.0.2
Дата

Дата

Тип

Тип

jar
Описание

Описание

Spring WeChat API Integration.

Скачать spring-boot-wechat-starter

Как подключить последнюю версию

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

Зависимости

compile (4)

Идентификатор библиотеки Тип Версия
org.springframework.boot : spring-boot-starter jar 2.4.1
com.glancebar.wechat : wechat-library jar 0.0.2
com.glancebar.wechat : spring-boot-wechat-autoconfigure jar 0.0.2
org.jetbrains.kotlin : kotlin-stdlib jar 1.4.21

test (1)

Идентификатор библиотеки Тип Версия
org.junit.jupiter : junit-jupiter jar 5.7.0

Модули Проекта

Данный проект не имеет модулей.

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.

Версии библиотеки

Версия
0.0.2
0.0.1