SpringMvc相关配置的作用

1.

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

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

原文地址:https://www.cnblogs.com/imfjj/p/5962837.html