redirect_uri 参数错误,求解决方案

@WebServlet("/wxLogin")
public class WXLoginServlet extends HttpServlet {
    @Override
    protected void doGet(HttpServletRequest req, HttpServletResponse resp)
            throws ServletException, IOException {
        String backUrl = "http://morning.iok.la/MEILI/callBack";// 回调地址
        String url = "https://open.weixin.qq.com/connect/oauth2/authorize?appid="
                + AuthUtils.APPID
                + "&redirect_uri="
                + URLEncoder.encode(backUrl)
                + "&response_type=code&scope=snsapi_userinfo&state=STATE#wechat_redirect";
        resp.sendRedirect(url);
    }


囿一夂偌丶想妳
浏览 1598回答 1
1回答
打开App,查看更多内容
随时随地看视频慕课网APP

相关分类

Java