测试公众号的申请及接口信息配置

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.getParameter(name)

猜你喜欢

转载自blog.csdn.net/zhw0596/article/details/105912753