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

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

Mapper.xml、mybatis-config.xml
这两个文件中有中文时,报错以下图
在这里插入图片描述web

网上搜了好多方法都没解决,好比
在这里插入图片描述
后来发了一篇Blink,有位朋友帮我解答了。
解决办法:将配置文件设置utf8
修改mybatis-config.xml
在这里插入图片描述
修改Mapper.xml在这里插入图片描述mybatis