ITeye博客

spring中的<mvc:annotation- driven/>

lalahei · 2015-09-11 14:27 · FAQ · 编程语言 · Markdown

3.1之后 spring自动注入 RequestMappingHandlerMapping RequestMappingHandlerAdapter

3.1之前 注入AnnotationMethodHandlerAdapte AnnotationMethodHandlerMapping 

 

没加 采用默认的配置

org.springframework.web.servlet.HandlerMapping=org.springframework.web.servlet.handler.BeanNameUrlHandlerMapping,\

org.springframework.web.servlet.mvc.annotation.DefaultAnnotationHandlerMapping

 

org.springframework.web.servlet.HandlerAdapter=org.springframework.web.servlet.mvc.HttpRequestHandlerAdapter,\

org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter,\

org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter

 

3.1之后AnnotationMethodHandlerAdapter DefaultAnnotationHandlerMapping 已经废弃不用了  建议使用最新API

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。