First, according to the website https://www.cnblogs.com/cangqinglang/p/10027199.html , after configuring IDEA, tomcat starts successfully, but the access page reports a 404 error, by consulting http://t.csdn.cn/Iz1BH
This website has found a solution. The output directory path configuration is wrong. Make sure that the output path of the project is the webapps path of tomcat, not the project path.