如果在idea中想添加一些文件模板,可以参考以下的方法:
file---setting---file and code templates,以mapper.xml文件为例,将模板内容填入,保存即可。
新建文件的时候,选择之前添加的模板文件就可以实现自定义文件了
idea下新增文件模板
原文:https://www.cnblogs.com/lazydays/p/12078004.html