100字范文,内容丰富有趣,生活中的好帮手!
100字范文 > 微信公众号服务号开发中服务器配置

微信公众号服务号开发中服务器配置

时间:2024-04-01 06:52:49

相关推荐

微信公众号服务号开发中服务器配置

微信公众号服务号开发中服务器配置

参考见:/tn/article/31

微信公众号服务号开发中服务器配置:

微信开发中所有服务器配置是以get请求请求你所配置的服务器的地址。

@ResponseBody@RequestMapping(value = "api/wx/callback", method = RequestMethod.GET)public void callback(HttpServletRequest request, HttpServletResponse response) {try {request.setCharacterEncoding("UTF-8");response.setCharacterEncoding("UTF-8");// 开发者提交信息后,微信服务器将发送GET请求到填写的服务器地址URL上,GET请求携带参数String signature = request.getParameter("signature");// 微信加密签名(token、timestamp、nonce。)String timestamp = request.getParameter("timestamp");// 时间戳String nonce = request.getParameter("nonce");// 随机数String echostr = request.getParameter("echostr");// 随机字符串//PrintWriter out = response.getWriter();

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。