通过JDBC连接mysql出现中文乱码问题的一个方便的解决方式: 将连接的URL写成这样的形式: "jdbc:mysql://localhost:3306/***?userUnicode=true&characterEncoding=utf8";