Configuration file description for SPRINGMVC

Source: Internet
Author: User

<?XML version= "1.0" encoding= "UTF-8"?><Beansxmlns= "Http://www.springframework.org/schema/beans"Xmlns:xsi= "Http://www.w3.org/2001/XMLSchema-instance"Xmlns:context= "Http://www.springframework.org/schema/context"Xmlns:mvc= "Http://www.springframework.org/schema/mvc"XMLNS:AOP= "HTTP://WWW.SPRINGFRAMEWORK.ORG/SCHEMA/AOP"xsi:schemalocation= "Http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd        Http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd HTTP://WWW.SPRINGFRAMEWORK.ORG/SCHEMA/MVC http://www.springframework.org/schema/mvc/spring-mvc.xsd htt P://WWW.SPRINGFRAMEWORK.ORG/SCHEMA/AOP http://www.springframework.org/schema/aop/spring-aop.xsd ">        <!--Annotations <context:component-scan> -    <!--start scanner scan base-package= "" The bean in this package can be omitted <bean id= "" class= ""/> This syntax while the bean needs annotation annotation type has controller , service, Repository, component -    <Context:component-scanBase-package= "com"/><!--Handlermapping is the processor map, which maps Web requests to the correct processor -<BeanID= "Haldermapping"class="" > < Propertyname= "Mappings">  <Props>    <propname= "/login.do">Login</prop>  <Props></ Property></Bean><!--value that corresponds to the login.do above -<BeanID= "Login"class=""><!--MVC Scan, with it can not write the above processor mapping the controller component of the method above to add annotation @requestmapping ("/login.do") process login.do Request Path Method @requestparam ( "username") specifies the incoming web inside name= "username" parameter -        <Mvc:annotation-driven></Mvc:annotation-driven><!--Viewresolver is the view layer, which can be added with some conditions -<BeanID= "Viewresolver"class= "Org.springframework.web.servlet.view.InternalResourceViewResolver"></Bean></Beans>

Configuration file description for SPRINGMVC

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.