"jdbc:mysql://localhost:3306/test?useUnicode=true&characterEncoding=GBK";
useUnicode=true&characterEncoding=GBK
表示以支持Unicode(国际字符集)的方式,并以支持GBK(中文字符集)的方式连接数据库。
"jdbc:mysql://localhost:3306/test?useUnicode=true&characterEncoding=GBK";
useUnicode=true&characterEncoding=GBK
表示以支持Unicode(国际字符集)的方式,并以支持GBK(中文字符集)的方式连接数据库。