在IDEA中右键New没有创建Mapper文件选项解决办法

第一步:进入目录settings->Editor->File and Code Templates

在这里插入图片描述

 第二步:添加模板步骤

在这里插入图片描述

 此处为模板的内容

<?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>

再次添加的时,就能看到了

![在这里插入图片描述](https://img-blog.csdnimg.cn/80aad19baea540a9a5c18f209ef529c0.png?x-oss-process=image/watermark,type_d3F5LXplbm

猜你喜欢

转载自blog.csdn.net/Maxiao1204/article/details/129424958