敲完我的也是验证失败,打印出SHA1和signature才发现存在大小写的问题,比对时要忽略 大小写去比对
return temp.equalsIgnoreCase(signature);
return temp.equalsIgnoreCase(signature);
2016-11-07
微信中文乱码???????,
解决方案: 在doPost中添加
req.setCharacterEncoding("UTF-8");
resp.setCharacterEncoding("UTF-8");
PrintWriter out = resp.getWriter();
PrintWriter这一行一定要放在下面.
解决方案: 在doPost中添加
req.setCharacterEncoding("UTF-8");
resp.setCharacterEncoding("UTF-8");
PrintWriter out = resp.getWriter();
PrintWriter这一行一定要放在下面.
2016-11-06