//1.设置response的编码为utf-8
response.setCharacterEncoding("utf-8");
Java中文乱码解决方案
原文:https://www.cnblogs.com/javaboy2018/p/9162202.html