1. Create a new maven project and configure tomcat
Reference: https://www.cnblogs.com/weibanggang/p/9652570.html
2. Configure pom.xml to add dependencies, add additional jar packages, mark the lib directory as resourses, and import static pages
3. Configure web.xml to add filters, listeners, spring and springmvc
4. Configure applicationcontext.xml spring configuration file to integrate mabits springmvc log4j
5. Configure mabits springmvc log4j separately
6. Recompile the project
Screenshot
Source network disk address
Link: https://pan.baidu.com/s/1Tfndt5m4UE2BDwVore3l5Q
Extraction code: Goil
copy this content and open the Baidu Netdisk mobile app, the operation is more convenient