java.lang.IllegalArgumentException: Servlet mapping specifies an unknown servlet name

馋奶兔 提交于 2019-11-29 16:13:20
Rajnikant Patel

The <servlet-name> of the <servlet-mapping> entry must be exactly the same as the <servlet-name> of the <servlet> entry.

So, in your specific case, change this line in <servlet-mapping> entry

<servlet-name>dispatcher</servlet-name>

to

<servlet-name>DispatcherServlet</servlet-name>

As written in the

Caused by: java.lang.IllegalArgumentException: Servlet mapping specifies an unknown servlet name dispatcher

Your servlet name in the <servlet> and <servlet-mapping> must be same.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!