https://github.com/linux-china/spring-boot-starter-wechatmp
Spring Boot with Wechat Support
https://github.com/linux-china/spring-boot-starter-wechatmp
Last synced: about 1 year ago
JSON representation
Spring Boot with Wechat Support
- Host: GitHub
- URL: https://github.com/linux-china/spring-boot-starter-wechatmp
- Owner: linux-china
- Created: 2015-11-18T03:17:40.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2023-08-04T19:33:16.000Z (almost 3 years ago)
- Last Synced: 2025-04-02T02:51:14.500Z (over 1 year ago)
- Language: Java
- Size: 18.6 KB
- Stars: 23
- Watchers: 6
- Forks: 18
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
spring-boot-start-wechatmp
===================================
Spring Boot对微信公众号(订阅号、服务号)的支持
### usage
in pom.xml add following dependency:
org.mvnsearch.wechat
spring-boot-starter-wechatmp
1.0.0-SNAPSHOT
in application.properties file, please add following keys:
spring.wechatmp.appId=xxxx
spring.wechatmp.secret=yyyy
If you set token and aesKey in wechat backend, please add following settings:
spring.wechatmp.token=your-token
spring.wechatmp.aesKey=your-aeskey
If you want to implement wechat payment features, please add following settings:
spring.wechatmp.partnerId=your-partnerId
spring.wechatmp.partnerKey=your-partnerKey
in your code you can use OssClient directly:
@Autowired
WxMpService wxMpService;
### spring-boot-start-wechatmp service List
* me.chanjar.weixin.mp.api.WxMpInMemoryConfigStorage: config storage
* me.chanjar.weixin.mp.api.WxMpService: wechat MP service
### 参考
* 微信开放平台: https://open.weixin.qq.com/
* Wechat接入开发文档: https://github.com/wechat-group/weixin-java-tools