在IDEA中创建模板:

 File|Settings|Editor|General|File and Code TemplatesIntellij IDEA 2018.2 Mybatis 中创建batis-cfg.xml模板文件

在中间添加代码:

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

src下右键|New|选择刚才的模板|起自己的一个文件名哦

Intellij IDEA 2018.2 Mybatis 中创建batis-cfg.xml模板文件

创建完成:

Intellij IDEA 2018.2 Mybatis 中创建batis-cfg.xml模板文件

相关文章:

  • 2021-08-15
  • 2022-12-23
  • 2022-01-18
  • 2021-08-31
  • 2021-06-08
  • 2021-07-24
  • 2021-10-28
  • 2021-08-25
猜你喜欢
  • 2021-06-05
  • 2022-01-01
  • 2021-11-03
  • 2022-03-02
  • 2022-01-01
相关资源
相似解决方案