1.

<!-- 配置 handlerAdapter-->
<bean class="org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter"></bean>

这个作用就是 请求controller的路径为 /hello.do 与/hello都可以访问,不加上面配置 /hello就会报404错误

posted on 2016-10-15 10:13  我是坏男孩  阅读(192)  评论(0编辑  收藏  举报