Mysql存中文字符出错:Incorrect string value: '\xC2\xE9\xD7\xED\解决方法

1.数据库连接设置编码格式为UTF-8

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

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

2.建设数据库

  

posted on 2019-04-08 22:58  BestCoding  阅读(987)  评论(0编辑  收藏  举报