在jsp顶部加入<%@ page contentType="text/html; charset=utf-8" language="java" import="java.sql.*" errorPage="" %>
<%request.setCharacterEncoding("utf-8") ; //对接收的数据进行统一的编码规则定义。%>