在idea使用mybatis插入MySQL数据库显示?

  1. 数据库版本,这里没有截到编码方式的图,数据库编码已经改成utf8的

    img

  2. db.properties配置文件

    img

  3. config.xml配置文件

    img

  4. 依赖文件

    img

  5. util类

    img

  6. findTest

    img

  7. findTest的结果,查找数据库中已有的数据中文出现乱码

    img

  8. insertTest

    img

  9. insertTest的结果,插入的中文字符在命令行中显示为“?”

    img

  10. mapper.xml

    img

你换一个工具试试 navicat

idea里java文件的编码格式截图看看?在右下角。