- 1、spring.xml模板
- 2、web.xml模板
- 3、mybatis-config.xml模板
- 4、mapper.xml模板
- 5、jdbc.properties模板
- 6、log4j.properties模板
在SSM项目开发中,会用到很多的配置文件,比如spring-mvc.xml,web.xml,mybatis-config.xml等等,在开发过程中我们往往只想往里面添加我们想要的配置即可,其他的像配置文件的dtd,文件头等既难记,也不好写,jdbc.properties等配置文件的内容几乎不会改变写起来也比较繁琐,好在idea提供给大家创建模板的功能,可以给大家减少这些繁琐的操作。
下面提供一整套的配置文件模板供大家使用:
1、spring.xml模板2、web.xml模板
3、mybatis-config.xml模板
4、mapper.xml模板
5、jdbc.properties模板
jdbc.driver=com.mysql.cj.jdbc.Driver jdbc.url=jdbc:mysql://localhost:3306/javaeedatabase?useUnicode=true&characterEncoding=utf8&serverTimezone=GMT%2B8&useSSL=false&allowPublicKeyRetrieval=true jdbc.username=root jdbc.password=root6、log4j.properties模板
# Global logging configuration log4j.rootLogger=DEBUG, stdout # Console output... log4j.appender.stdout=org.apache.log4j.ConsoleAppender log4j.appender.stdout.layout=org.apache.log4j.PatternLayout log4j.appender.stdout.layout.ConversionPattern=%5p [%t] - %m%n



