java.lang.IllegalArgumentException: Failed to register servlet with name 'dispatcher'.Check if there is another servlet registered under the same name

后端 未结 2 481
无人及你
无人及你 2021-01-29 00:14

My initializer class

public class HomeServlet extends 
AbstractAnnotationConfigDispatcherServletInitializer{

@Override
protected Class         


        
2条回答
  •  囚心锁ツ
    2021-01-29 01:01

    My friend encountered the same problem. The problem was that the correct package name was not set for the class. AAAAnd clean the project before packaging!!!

    Here is the code on GitHub

提交回复
热议问题