IDEA创建Mapper文件

在设置中添加:

微信截图_20210322145045.png

微信截图_20210322144935.png

模版内容:

1
2
3
4
5
<?xml version="1.0" encoding="utf-8" ?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
<mapper namespace="">

</mapper>

微信截图_20210322145748.png

检验:

微信截图_20210322145835.png