<!-- 配置HandlerMapping
根据一个bean的name的属性,去寻找对应的Handler
-->
<bean class= "org.springframework.web.servlet.handler.BeanNameUrlHandlerMapping"/>
<!-- 定义HandlerAdapter -->
<bean class="org. springframework. web.servlet. mvc. Simpl eControllerHandlerAdapter"></bean>
精简的话,可以忽略对hander和handerAdapter进行配置(生成bean)
<!--配2置视图解析器
前缀: prefix=" /WEB-INF/isp/",后缀: suffix=".isp.", 视图名: viewname= "test"
"/WEB-INF/jsp/test.jsp"
-->
<bean class= "org.springframework.web.servlet.view.InternalResourceViewResolver">
<property name= "prefix" value= "/WEB- INF/views/"></property>
<property name= "suffix" value=".jsp"></ property>
</bean>