No Spring WebApplicationInitializer types detected on classpath
意思为没有找到配置文件
需要看看web.xml中DispatcherServlet读取的文件名与你项目中的文件是否一致
<servlet>
<servlet-name>springDispatcherServlet</servlet-name>
<servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
<init-param>
<!--初始化参数
contextConfigLocation:指定Springmvc配置文件位置
-->
<param-name>contextConfigLocation</param-name>
<param-value>classpath:springmvc.xml</param-value>
</init-param>
<!-- 定义启动顺序:数值越小优先级越高,(越早创建 )-->
<load-on-startup>1</load-on-startup>
</servlet>