场景:
mybatis访问本地数据库
原因:
驱动与数据库字符集不匹配
解决:
在url中添加字符集说明
"jdbc:mysql://localhost:3306/mybatis?characterEncoding=utf8"
mybatis访问本地数据库
驱动与数据库字符集不匹配
解决:
在url中添加字符集说明
"jdbc:mysql://localhost:3306/mybatis?characterEncoding=utf8"
上一篇:spring项目打包报错“Error assembling WAR: webxml attribute is required (or pre-existing WEB-INF/web.xml
举报文章
请选择举报类型
补充说明
0/200
上传截图
格式支持JPEG/PNG/JPG,图片不超过1.9M