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

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

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

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

猜你喜欢

转载自blog.csdn.net/weixin_43482906/article/details/108433563