从官方文档可以看出,他做到了简简单单,但没有做到明明白白。
那么接下来我首先说下文中的url,很多人都不知道这个url,其实他就是
当这些正准备好之后,直接上代码
//微信推送事件 url
@RequestMapping(value = "/wx", method = RequestMethod.GET)
@ResponseBody
public void get(HttpServletRequest request, HttpServletResponse response)
throws Exception {
boolean isGet = request.getMethod().toLowerCase().equals("get");