mybatis-config.xml中文注释报错问题

mybatis-config.xml这个文件中有中文时
报错图片如下:

mybatis-config.xml中文注释报错问题

一个简单的解决方法:
将配置文件mybatis-config.xml的字符集改为utf8
mybatis-config.xml中文注释报错问题
(tip:若Mapper.xml也出现类似情况,可同上方案解决。)

相关文章: