Tomcat项目报错:严重 [RMI TCP Connection(3)-127.0.0.1] org.apache.catalina.core.ContainerBase.addChildInter
•
后端
严重 [RMI TCP Connection(3)-127.0.0.1] org.apache.catalina.core.ContainerBase.addChildInternal ContainerBase.addChild: start: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/1_demo_war]]
报错代码
严重 [RMI TCP Connection(3)-127.0.0.1] org.apache.catalina.core.ContainerBase.addChildInternal ContainerBase.addChild: start:
org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/1_demo_war]]
报错截图

探究原因
在src/main/webapp/WEB-INF/web.xml文件中配置Servlet时,映射地址中没有/
解决方法
正确示范
test1
com.example.demo.TestServlet1
test1
/test1
本文来自网络,不代表协通编程立场,如若转载,请注明出处:https://net2asp.com/7da612fde1.html
