PreparedStatement 在mysql下中文乱码解决方案:原因:没有指定编码url=jdbc:mysql://localhost:3306/test【?characterEncoding=utf8】添加中括号里面的内容即可