只需要在连接数据库的url后面加上一些设置即可 jdbc:mysql://202.120.40.97:33066/hbj_2012_db?userUnicode=true&characterEncoding=utf-8