SpringMvc相關配置的作用

我是壞男孩發表於2016-10-15

1.

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

這個作用就是 請求controller的路徑為 /hello.do 與/hello都可以訪問,不加上面配置 /hello就會報404錯誤

相關文章