首页 > 代码库 > 数据库链接时设置编码格式

数据库链接时设置编码格式

jdbc:mysql://localhost:3306/test?useUnicode=true&characterEncoding=utf8&mysqlEncoding=utf8


这个相当于一个URL,可以使用http中 拼成的字符串 的链接



本文出自 “东方小阁” 博客,请务必保留此出处http://lailai.blog.51cto.com/3362373/1552767

数据库链接时设置编码格式