1.
<!-- 配置 handlerAdapter-->
<bean class="org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter"></bean>
這個作用就是 請求controller的路徑為 /hello.do 與/hello都可以訪問,不加上面配置 /hello就會報404錯誤
1.
<!-- 配置 handlerAdapter-->
<bean class="org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter"></bean>
這個作用就是 請求controller的路徑為 /hello.do 與/hello都可以訪問,不加上面配置 /hello就會報404錯誤