1)serviceImp+controller返回类型要与数据库一致;
2)SpringMvc Controller层接受中文数据乱码——————————-
进行转码
try {
String sta = new String(content.getBytes("iso-8859-1"),"utf-8");
System.out.println(sta +"content");
} catch (UnsupportedEncodingException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}