启动servlet报错:The servlets named [DemoServlet] and [main.java.com.wlf.demo.servlet.DemoServlet] are both mapped to the url-pattern [/hello] which is not permitted
摘要:
先看具体错误日志: 日志里报错的地方不少,但其实关键的就标黄那里。我们知道日志堆栈需要反着看,标黄处是异常抛出来的地方,下面才是开始依次执行逻辑的步骤,这里大概说下:启动tomcat时会解析注解WebServlet,去添加Servlet的映射,但这时它发现已经存在该Servlet的配置了,抛出了异常 阅读全文
posted @ 2019-04-26 11:54 不想下火车的人 阅读(1182) 评论(0) 推荐(0)
浙公网安备 33010602011771号