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选项