tomcat报错:Failed to start componen

做一个 servlet + jsp 的crud项目,启动tomcat时报错:

 org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/oa3]]

 发现是路径没加 /

//@WebServlet("dept/list")
//加斜杠加斜杠加斜杠加斜杠
@WebServlet("/dept/list")
public class DeptServlet extends HttpServlet {

你可能感兴趣的:(报错笔记,servlet,tomcat)