eclipse插入数据库 乱码

*.properties这种方式时mysql

jdbc.driver=com.mysql.jdbc.Driver
sql

jdbc.url=jdbc:mysql://localhost:3306/mybaits?useUnicode=true&characterEncoding=utf-8url

jdbc.username=rootcode

jdbc.password=123456xml



直接写在*.xml文件中时utf-8

jdbc:mysql://localhost:3306/mybaits?useUnicode=true&characterEncoding=utf-8it

相关文章
相关标签/搜索