在mybatis或者其它要写多个配置或者mapper文件时可以利用模板文件来减少工作量。
IntelliJ Idea->File->Settings->Editor->Code Style->File and code template.
注意文件的后缀,我要创建mybatis的mapper文件,它的extension是xml.