微信開發工具包:weixin4j
weixin4j 是微信開發工具包。
weixin4j是一個用java編寫針對微信開發的工具包,包含 weixin4j-mp (微信公眾平臺API)、weixin4j-qy (微信企業號API)以及 weixin4j-server (微信回調消息服務器)三個工程。
功能列表
-
weixin4j-mp
公眾平臺API封裝
微信支付(刷卡/掃碼/公眾號)
-
weixin4j-qy
企業號API封裝
微信支付(刷卡/掃碼/公眾號)
-
weixin4j-server
netty服務器&消息分發
如何獲取
1.maven依賴
微信公眾平臺API(1.5.2,2015-08-09 released)
<dependency> <groupId>com.foxinmy</groupId> <artifactId>weixin4j-mp</artifactId> <version>1.5.2</version> </dependency>
微信企業號API(1.5.2,2015-08-09 released)
<dependency> <groupId>com.foxinmy</groupId> <artifactId>weixin4j-qy</artifactId> <version>1.5.2</version> </dependency>
微信回調消息服務器(1.0.4,2015-08-09 released)
<dependency> <groupId>com.foxinmy</groupId> <artifactId>weixin4j-server</artifactId> <version>1.0.4</version> </dependency>
以上依賴如果出現Missing artifact錯誤 請嘗試在eclipse里這么做
-
進入 Window > Show View > Other > Maven Repositories 展開 Global Repositories 在group或者central上右鍵執行update index操作
-
或者進入 Windows > Preferences > Maven 選中Download repository index updates on startup即可
2.直接下載jar包
-
weixin4j-mp & weixin4j-qy 所需的依賴包: fastjson1.2.x
-
weixin4j-server 所需的依賴包: netty4.x
3.從源碼打包
git clone&mvn package
接下來
-
公眾號第三方服務應用
-
硬件設備 & 搖一搖周邊
-
微信小店&門店
-
微信卡券
本文由用戶 jopen 自行上傳分享,僅供網友學習交流。所有權歸原作者,若您的權利被侵害,請聯系管理員。
轉載本站原創文章,請注明出處,并保留原始鏈接、圖片水印。
本站是一個以用戶分享為主的開源技術平臺,歡迎各類分享!