Mybatis插入MySQL数据库中文乱码在dataSource.properties配置文件中设置useUnicode=true&characterEncoding=utf-8编码即可。jdbc.url=jdbc:mysql://localhost/db?useUnicode=true&characterEncoding=utf-8 jdbc.username=root jdbc.password=root