首先打开File-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>
点击Apply后添加成功。你就可以创建Mapper.xml文件了
Have a nice day(* ̄︶ ̄)