liurui-bk517

1、打开file

2,打开setting,左上角输入template

3,在左侧栏找到File And Code Template

4,中间选中files点击+号,添加模板

5,输入模板名字:Name:mybatis-cfg.xml(名字可以自己定义)

6,后缀名extension:xml

7,在模板中输入以下内容:

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

8、把enable live Template(激活模板)勾选上
9、点击Apply—ok
10、选中模板,然后输入xml文件名字mybatis.cfg.xml

创建成功之后,我们就可以创建一个xml文件了:

分类:

技术点:

相关文章:

  • 2021-11-27
  • 2021-11-22
  • 2022-01-01
  • 2021-09-09
  • 2022-01-17
  • 2021-06-05
  • 2021-04-16
猜你喜欢
  • 2021-11-03
  • 2021-07-19
  • 2021-04-17
  • 2021-08-15
  • 2021-10-11
  • 2021-06-10
相关资源
相似解决方案