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

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

Mapper.xml、mybatis-config.xml
这两个文件中有中文时,报错如下图
Mapper.xml和mybatis-config.xml中文注释报错问题

网上搜了好多方法都没解决,比如
Mapper.xml和mybatis-config.xml中文注释报错问题
后来发了一篇Blink,有位朋友帮我解答了。
解决办法:将配置文件设置utf8
修改mybatis-config.xml
Mapper.xml和mybatis-config.xml中文注释报错问题
修改Mapper.xmlMapper.xml和mybatis-config.xml中文注释报错问题