The WeChat Java
development toolkit supports the back-end development of WeChat functional modules including WeChat payment, open platform, public account, corporate WeChat, video account, mini program and other WeChat function modules.
WxJava
won GitCode
top ten open source community awards in 2024.
To discuss project cooperation, please contact WeChat binary0000
(Search and add friends on WeChat, please indicate your purpose of visit. If you need to discuss SDK issues, please refer to the group discussion below, do not add this WeChat).
2023-12-28 Release [4.6.0 official version] !
To contribute source code, you can refer to the videos: [The whole process of contributing source code (Part 1)], [The whole process of contributing source code (Part 2)], courtesy of: Programmer Xiaoshan and Bugs
Important note for newbies: This project is only an SDK development toolkit and does not provide Web implementation. It is recommended to use maven
or gradle
to reference this project to use the various functions provided by this SDK. For details, please refer to [Demo Project] or in this project Part of the unit test code;
Newbies to WeChat development should be sure to read the FAQ section of the [Development Documentation] (Gitee Wiki or Github Wiki) to avoid many detours and save a lot of time.
Technical exchange group: Students who want to get information about QQ groups/WeChat groups/DingTalk enterprise groups, etc., please use WeChat to scan the QR code of the WeChat public account above to follow WxJava
and click the relevant menu to get the joining method. You can also use WeChat Search for weixin-java-tools
or WxJava
and select the correct official account to follow. The official account will promptly notify SDK related update information and share technical knowledge related to WeChat Java development from time to time;
DingTalk technical exchange groups: 32206329
(technical exchange group 2), 30294972
(technical exchange group 1, currently full), 35724728
(notification group, real-time notification of Github project change records).
If you are new to WeChat development or Java development, please read [The Wisdom of Asking Questions] before asking questions in the group or opening a new Issue, and make sure you have consulted the [Development Documentation Wiki] to avoid wasting everyone's precious time;
If you need to post code or a long list of exception information when seeking help, please use http://paste.ubuntu.com
Students who read the source code, please note that this SDK adds lombok
support when compiling to simplify the code. If you don’t know lombok
, please learn the relevant knowledge first, for example, you can read this article;
If you have new functional requirements, find bugs, or code problems caused by adjustments to WeChat's official interface, you can directly raise an issue on the [Issues] page to facilitate discussion and tracking of issues;
If you need to contribute code, please be sure to read the [Code Contribution Guidelines] carefully before submitting a PR. Thank you for your understanding and cooperation;
Currently, the minimum version of JDK
required by the latest version of this SDK
is 8
Students using 7
can use WxJava
3.8.0
and previous versions. Users who are still using JDK
6 please refer to [this project], while other earlier JDK versions are You need to transform and implement it yourself.
This project is on the Open Source China page. Everyone is welcome to leave a positive message and rate it.
Please refer to the [Development Documentation Wiki] for SDK development documents. Some documents may not be updated in time. If found, you can report it in time or modify it yourself.
If this development toolkit is helpful to you, you are welcome to affirm our efforts. You can go directly to the [project homepage hosted on Code Cloud] and find the "Donate" button at the bottom of the page to reward. The more the merrier. Thank you very much to all the students who tipped and donated!
The Javadoc of each module can be viewed online: weixin-java-miniapp, weixin-java-pay, weixin-java-mp, weixin-java-common, weixin-java-cp, weixin-java-open
This SDK project is updated simultaneously on the following code hosting website:
Code cloud: https://gitee.com/binary/weixin-java-tools
GitHub: https://github.com/binarywang/WxJava
Note: The latest version (including beta version) is. The following is the latest official version.
<dependency> <groupId>com.github.binarywang</groupId> <artifactId> (please refer to different modules below)</artifactId> <version>4.6.0</version> </dependency>
WeChat mini program: weixin-java-miniapp
WeChat payment: weixin-java-pay
WeChat open platform: weixin-java-open
Public account (including subscription account and service account): weixin-java-mp
Enterprise account/Enterprise WeChat: weixin-java-cp
Video account/WeChat store: weixin-java-channel
This project is scheduled to release an official version approximately every two months (at the same time, the develop
branch code is merged into the release
branch). The version number format is XX0
(such as 2.1.0
, 2.2.0
, etc.). If there are major problems that need to be repaired, they will be submitted in time. For the new version, everyone is welcome to submit a Pull Request at any time;
BUG fixes and new features are generally first released into a small version as a temporary test version (such as 3.6.8.B
, that is, the tail number is not 0, and B is added to distinguish it from the official version), and the code only exists in the develop
branch;
The latest version number is currently. You can also view all the latest versions by accessing the links [WeChat Payment], [WeChat Mini Program], [Official Account], [Enterprise WeChat], and [Open Platform].
For the complete case registration list, please [visit here] to view, and you are welcome to register more cases.
The following are some excerpted cases:
Check-in, lottery, and barrage sending program based on WeChat public account: https://github.com/workcheng/weiya
Jeepay payment system: https://gitee.com/jeequan/jeepay
WeTong Mall: https://gitee.com/fuyang_lipengjun/platform
WeChat ordering system: https://github.com/sqmax/springboot-project
A small but beautiful tool focused on batch push: https://github.com/rememberber/WePush
yshop image mall system: https://gitee.com/guchengwuyue/yshopmall
wx-manage (WeChat public account management project): https://github.com/niefy/wx-manage
Based on the WeChat public account management system developed by Joo Yi: https://gitee.com/joolun/JooLun-wx
SAAS WeChat mini program e-commerce: https://gitee.com/wei-it/weiit-saas
mall4j e-commerce mall system: https://gitee.com/gz-yami/mall4j
(Jingdong) Youjia Shop, Youjia Shop Manager’s Edition, Beijing Fans’ Selection
Meow Star Post Bar Assistant (Scan the QR code to follow)
Sloth holding books +
Guanglian Express, Pengcheng Bus, etc.
Burning challenge, sportlight light sports
360 Exam Guide
Civilian Medical Center
Come to the business version
Spida (Stanley)
ticking cloud seal
Vivo ho ho ho
Dynasty Community (BYD New Energy Community)
Jihouhou mobile phone comes to your door for recycling and replacement
future envelope
5G benefits
Lettuce wordpress to mini program
Lirigo
China Telecom Shanghai Network Hall (sh_189)
E answer platform
Ningxia Fresh Food 365
Tongfuhuodi
Shenlong car maintenance
Wo Music Business Intelligence
Halo Cloud Community
Mobile phone queue
National Running Fitness Convenience Store
Civilian Medical Center
YshopMall
Direct train to Haoxing Scenic Area and more than 40 public accounts across the country
Woao basketball official account
Future envelope official WeChat account
Yinchuan Zhiyun Consultation
5G benefits
HTC Enterprise WeChat
Pocket Stanley
Pharmacy benefits
Gaoshan Human Resources
piggy meal
Catering system
WeChat public account management system: http://demo.joolun.com
Ruijie Networks: Saleslink
Special thanks to all students who participated in the contribution. Please view the list of all contributors here. Everyone is welcome to continue to contribute code!
chanjarster (Daniel Qian)
binarywang (Binary Wang)
007gzs
Silloy
mgcnrx11
0katekate0 (Wang_Wong)
yuanqixun
kakotor
aimilin6688 (Jonk)
lkqm (Mario Luo)
kareanyi (MillerLin)
Bincent (Hongbin.hsu)