1.光标移动到resources,右击鼠标
2.光标移动到New,点击Edit File Templates…
3.弹出File and Code Templates界面,点击+号
4.弹出
5.改文件名Name为mybatis-config,改文件类型Extension为xml
6.添加代码
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE configuration
PUBLIC "-//mybatis.org//DTD Config 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-config.dtd">
<configuration>
</configuration>
7.勾选Enable Live Templates(激活)
8.点击Apply(应用)
9.点击确定
10.New中会出现mybatis-config.xml