Tomcat未启动成功,显示No Spring WebApplicationInitializer types detected on classpath

来源:互联网 发布:淘宝广场舞服装春装 编辑:程序博客网 时间:2024/05/22 01:47

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>

阅读全文
0 0
原创粉丝点击