参考微信文档
这部分代码试用于微信公众号的服务器token校验,且适用于小程序的token校验
接入概述 | 微信开放文档
@RequestMapping(value = "/message/verify")public @ResponseBody String verify(HttpServletRequest request, HttpServletResponse response) throws Exception {// 微信加密签名,signature结合了开发者填写的token参数和请求中的timestamp参数、nonce参数。String signature = request.getParameter("signature");logger.info("===signature====" + signature);// 时间戳String timestamp = request.getParameter("timestamp");logger.info("====timestamp===" + timestamp);// 随机数String nonce = request.getParameter(