1.setting,window idea file菜单中
2.Editor
3.File and Code Template
4.点击+
5.配置模版名称和文件类型
6.编辑模版
<?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>
7.勾选Enable Live Template
8.apply,ok
9.右键new