Mapper and Adapter 1, non-annotated mapper and adapter A. Single mapping in the starter program
Beannameurlhandlermapping
Simplecontrollerhandleradapter
B. Another type of mapping
C. Another type of adapter
Requires handler to implement Interface Httprequesthandler
DemoController2
The SPRINGMVC has a default mapping adapter view.
/org/springframework/web/servlet/dispatcherservlet.properties
If one is configured in the Springmvc.xml, the default is invalidated. If Simpleurlhandlermapping is configured, the beannameurlhandlermapping will fail.
2. The annotated mapper and adapter A. Mapping and Adapter
Ps: Annotated mapper and adapter to pair with
B.controller
Java
-xml
-----a single
-----Component Scan Context:component-scan
C. Testing
Http://localhost:8080/mybatis_spring/test001.action
Index.jsp inside is, <font size= "18px" >${msg}</font><br/>
Spring MVC Mapper and adapter