myeclipse 向数据库中插入数据后,乱码

在连接数据库类里面的url参数设置如下:

jdbc:mysql://localhost:3306/mybase?useUnicode=true&characterEncoding=UTF-8

在后面加上这两个参数。刷新链接就不是乱码了。

posted @ 2015-07-16 14:56  pyfreshman  阅读(524)  评论(0)    收藏  举报