还是那个业务背景,面向微信公众号开发,指定针对用户发送消息,胖友们,我研究了一天了,代码粘过去,用不了你锤死我
1、pom.xml文件中添加依赖
<!-- lombok --> <dependency> <groupId>org.projectlombok</groupId> <artifactId>lombok</artifactId> </dependency> <dependency> <groupId>org.wso2.apache.httpcomponents</groupId> <artifactId>httpmime</artifactId> <version>4.3.1.wso2v1</version> </dependency> <dependency> <groupId>org.wso2.apache.httpcomponents</groupId> <artifactId>httpclient</artifactId> <version>4.3.1.wso2v1</version> </dependency> <!-- json --> <dependency> <groupId>top.jfunc.json</groupId> <artifactId>json-fastjson</artifactId> <version>1.8.3</version> </dependency>