-
-
Notifications
You must be signed in to change notification settings - Fork 8.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
296 changed files
with
9,510 additions
and
1,960 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
<?xml version="1.0"?> | ||
<project 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" | ||
xmlns="http://maven.apache.org/POM/4.0.0"> | ||
<modelVersion>4.0.0</modelVersion> | ||
<parent> | ||
<groupId>com.github.binarywang</groupId> | ||
<artifactId>wx-java</artifactId> | ||
<version>3.6.0</version> | ||
</parent> | ||
<packaging>pom</packaging> | ||
<artifactId>wx-java-spring-boot-starters</artifactId> | ||
<name>WxJava - Spring Boot Starters</name> | ||
<description>WxJava 各个模块的 Spring Boot Starter</description> | ||
|
||
<properties> | ||
<spring.boot.version>2.1.4.RELEASE</spring.boot.version> | ||
</properties> | ||
|
||
<modules> | ||
<module>wx-java-miniapp-spring-boot-starter</module> | ||
<module>wx-java-mp-spring-boot-starter</module> | ||
<module>wx-java-pay-spring-boot-starter</module> | ||
<module>wx-java-open-spring-boot-starter</module> | ||
</modules> | ||
|
||
<dependencies> | ||
<dependency> | ||
<groupId>org.springframework.boot</groupId> | ||
<artifactId>spring-boot-autoconfigure</artifactId> | ||
<version>${spring.boot.version}</version> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.springframework.boot</groupId> | ||
<artifactId>spring-boot-configuration-processor</artifactId> | ||
<version>${spring.boot.version}</version> | ||
<optional>true</optional> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.projectlombok</groupId> | ||
<artifactId>lombok</artifactId> | ||
<scope>provided</scope> | ||
</dependency> | ||
</dependencies> | ||
</project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
34 changes: 34 additions & 0 deletions
34
spring-boot-starters/wx-java-open-spring-boot-starter/README.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
# wx-java-open-spring-boot-starter | ||
## 快速开始 | ||
1. 引入依赖 | ||
```xml | ||
<dependency> | ||
<groupId>com.github.binarywang</groupId> | ||
<artifactId>wx-java-open-spring-boot-starter</artifactId> | ||
<version>${version}</version> | ||
</dependency> | ||
``` | ||
2. 添加配置(application.properties) | ||
``` | ||
# 开放平台配置(必填) | ||
wx.open.appId = @appId | ||
wx.open.secret = @secret | ||
wx.open.token = @token | ||
wx.open.aesKey = @aesKey | ||
# 存储配置redis(可选), 优先使用(wx.open.config-storage.redis)配置的redis, 支持自定注入的JedisPool | ||
wx.open.config-storage.type = redis # 可选值, memory(默认), redis | ||
wx.open.config-storage.redis.host = 127.0.0.1 | ||
wx.open.config-storage.redis.port = 6379 | ||
``` | ||
3. 支持自动注入的类型: `WxOpenService, WxOpenMessageRouter, WxOpenComponentService` | ||
|
||
4. 覆盖自动配置: 自定义注入的bean会覆盖自动注入的 | ||
- WxOpenConfigStorage | ||
- WxOpenService | ||
|
||
|
||
|
||
|
||
|
||
|
||
|
Oops, something went wrong.