springmvc.xml
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:mvc="http://www.springframework.og/schema/mvc"
xmlns:context="http://www.springframework.og/schema/context"
xsi:schemaLocaion="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-3.2.xsd
http://www.springframework.org/schema/context
http://www.springframework.org/schema/context/spring-context-3.2.xsd
http://www.springframework.org/schema/mvc
http://www.springframework.org/schema/mvc/spring-mvc-3.2.xsd">
<!--配置Hanlder-->
<bean name="/queryItems.action" class="....ItemsController"/>
<!--处理器映射器
将bean的name作为url进行查找,需要配置Handler时指定的beanname(就是url)
-->
<bean class="org.springframework.web.servlet.handler.BeanNameUrlHandlerMapping">
<!--处理器适配器
所以的处理器适配器实现HandlerAdapter,此适配器能够执行实现Controller接口的Handler
-->
<bean class="org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter"/>
<!--配置视图解析器,解析jsp,默认使用jstl标签,classpath下得存在jstl包-->
<bean class="org.springframework.web.serlet.view.InternalResourceViewResolver">
</bean>
</beans>