在Servlet或者是拦截器里面添加下面的语句:
1 request.setCharacterEncoding("utf-8"); 2 response.setCharacterEncoding("utf-8"); 3 response.setContentType("text/html;charset=UTF-8");