最近在在使用weixin java tools学习开发微信,先把笔记记下来:
1:构建maven工程:,修改pom
<dependencies>
<!-- 微信支付 -->
<dependency>
<groupId>com.github.binarywang</groupId>
<artifactId>weixin-java-pay</artifactId>
<version>2.6.0</version>
</dependency>
<!-- 订阅号及服务号): -->
<dependency>
<groupId>com.github.binarywang</groupId>
<artifactId>weixin-java-mp</artifactId>
<version>2.6.0</version>
</dependency>
<!-- 企业号 -->
<dependency>
<groupId>com.github.binarywang</groupId>
<artifactId>weixin-java-cp</artifactId>
<version>2.6.0</version>
</dependency>
</dependencies>
2: