java插入mysql数据库,遇到中文会出现乱码的解决方案

来源:互联网 发布:中国社交平台使用数据 编辑:程序博客网 时间:2024/05/23 19:15
String url="jdbc:mysql://"+this.host+":"+this.port+"/"+this.dbName+"?user="+this.userName+"&password="+this.password+"&characterEncoding=utf-8";

原创粉丝点击