启动tomcat 一直在控制台输出 No mapping found for HTTP request with URI

启动tomcat 一直在控制台输出 No mapping found for HTTP request with URI

解决方案

1.在springmvc的配置文件中添加<mvc:default-servlet-handler/>可以解决

2.把springmvc的配置文件中 <context:component-scan base-package="xxx.yyy.zzz">改成你controller层的上一级目录包就行了 ,
比如你的controller类全部放在com.org.yy下,你只要扫描到com.org.*下就行了

猜你喜欢

转载自ymq267.iteye.com/blog/2346921
今日推荐