<?xml version= "1.0" encoding= "UTF-8"?>
<beans xmlns= "Http://www.springframework.org/schema/beans" xmlns:context= "http://www.springframework.org/ Schema/context "xmlns:p=" http://www.springframework.org/schema/p "xmlns:mvc=" http://www.springframework.org/ Schema/mvc "xmlns:xsi=" http://www.w3.org/2001/XMLSchema-instance "xsi:schemalocation="/HTTP/ Www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd http:/ /www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd htt P://www.springframework.org/schema/mvc http://www.springframework.org/schema/mvc/spring-mvc-3.0.xsd ">< Bean name= "/test1/hello" class= "Com.lcy.controller.HelloWorldController"/><bean name= "/test1/multi" class= " Com.lcy.controller.MultiController "><property name=" Methodnameresolver "><ref bean=" Parammethodresolver "/></property></bean><bean id=" Parammethodresolver "class=" Org.springframework.web.servleT.mvc.multiaction.parametermethodnameresolver "><property name=" paramname "value=" action "/></bean> <!--view resolver--><bean id= "Viewresolver" class= " Org.springframework.web.servlet.view.InternalResourceViewResolver "><property name=" prefix "value="/jsp/"/ ><property name= "suffix" value= ". JSP"/></bean></beans>
SpringMVC3.0 Configuration