idea中如何添加右键新增的mapper文件
1、点击左上角File,点击Setting设置。返回新建是,则有了mapper选项。2、搜索File and,选择。3、填写如下内容,点击OK。
·
1、点击左上角File,点击Setting设置
2、搜索File and,选择file and code templates,点击右侧加号
3、填写如下内容,点击OK
附上mapper文件模板代码:
<?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>
返回新建是,则有了mapper选项
更多推荐


所有评论(0)