1.导入相关jar包 2.配置文件的编写 可以将相关配置文件放在同一个文件夹内进行统一管理,但是所用的文件夹必须为源文件夹(Source Folder)。 1.数据库常量配置文件db.properties 2.日志配置log4j.properties 3.Spring配置文件applicationContext.xml 3.Mybatis的配置文件mybatis-config.xml 4.Spring MVC 的配置文件spring-config.xml 5.web.xml文件配置 相关文章: 2021-08-11