Class-Level processors
one: Class level
Org.springframework.web.servlet.mvc.annotation.DefaultAnnotationHandlerMapping
To be replaced by:
Org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping
Two: Method level
Org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter
To be replaced by:
Org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter
Detailed Configuration
<!--start the annotation feature of spring MVC, complete the mapping of request and annotation pojo, add interceptors, class-level processor mappings--> <!--org.springframewor k.web.servlet.mvc.annotation.defaultannotationhandlermapping--> <bean class= " Org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping "/> <!--start Spring The annotation function of MVC, complete the mapping of request and annotation Pojo, method level processor mapping--> <!-- Org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter--> <bean class= " Org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter "> <property name=" Messageconverters "> <util:list id=" beanlist "> <!--for correct download encode
Gt <bean class= "Org.springframework.http.converter.ByteArrayHttpMessageConverter"/> <ref bean= "Mappi" Ngjacksonhttpmessageconverter "/> </util:list> </property> </bean>
"