在IDEA中`New`没有`Mapper`文件选项

在IDEA中New没有Mapper文件可以创建:
在这里插入图片描述
问题解决
1.File–>Settings–>Editor–>File and Code Templates

在这里插入图片描述
2.按照如下提示进行:
在这里插入图片描述
3.模板内容

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

猜你喜欢

转载自blog.csdn.net/qq_41115379/article/details/114276407
今日推荐