一、准备工作 在微信开发平台申请一个测试账号(优先选择这个),如果可以使用认证过的订阅号最好,不过我们在开发阶段很多功能都是测试用的,申请一个测试账号完全够用 个人的订阅号是不可以申请认证的,所以很多微信API不可以用 二、开始开发 写在前面 项目所需依赖 <!-- SpringBoot Web容器 --> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-web</artifactId> </dependency> <!--httpclient工具类https://github.com/Arronlong/httpclientutil--> <dependency> <groupId>com.arronlong</groupId> <artifactId>httpclientutil</artifactId> <version>1.0.4</version> </dependency> <dependency>...