web项目——启动时tomcat报错:Server Tomcat v7.0 Server at localhost failed to start.

时间:2023-12-14 11:10:02

报错信息:Server Tomcat v7.0 Server at localhost failed to start.

报错截图:

web项目——启动时tomcat报错:Server Tomcat v7.0 Server at localhost failed to start.

原因分析:在使用SSM框架时,生成的mapping与系统配置文件不符合

web.xml文件mapping配置和controller方法如下:

web项目——启动时tomcat报错:Server Tomcat v7.0 Server at localhost failed to start.

web项目——启动时tomcat报错:Server Tomcat v7.0 Server at localhost failed to start.

解决方法:把配置和方法的mapping值结构配一致