一、在mybatis连接mysql时候,出现中文乱码状况,排除了不是数据库的编码问题mysql
jdbc:mysql://127.0.0.1:3306/test?useUnicode=true&characterEncoding=utf8sql
添加了useUnicode=true&characterEncoding=utf8参数以后,插入中文就正常了。数据库
2、eclipse中mybatis中xml没有自动提示mybatis
项目右键 maven ->downresource 便可eclipse