html中引用了post方法,输出出现乱码问题 解决方案: 1.直接改成get方法(tomcat要在8以上) 2.获取参数前,设置request编码 request.setCharacterEncoding("utf-8"); 在前面设置编码就可以也都是中文了 设置成功