0、申请测试号
https://mp.weixin.qq.com/debug/cgi-bin/sandboxinfo?action=showinfo&t=sandbox/index
1、接口配置信息
url带上http://
后端java代码
/**
* token校验
*/
@GetMapping("/checkToken")
@ResponseBody
public void checkToken(HttpServletRequest request, HttpServletResponse response) throws Exception {
log.info("========WechatController========= ");
Enumeration pNames = request.getParameterNames();
while (pNames.hasMoreElements()) {
String name = (String) pNames.nextElement();
String value = request.getParamet