C/C++气象数据中心实战,手把手教你做工业级项目|无密分享

#1

C/C++气象数据中心实战,手把手教你做工业级项目|无密分享

download:zxit666

spring MVC源码探究之AbstractHandlerMethodMapping
AbstractHandlerMethodMapping 是什么
解释是这样的。
/**

  • Abstract base class for {ink HandlerMapping} implementations that define
  • a mapping between a request and a {link HandlerMethod}.
  • For each registered handler method, a unique mapping is maintained with

  • subclasses defining the details of the mapping type {ode }.
  • param The mapping for a {ink HandlerMethod} containing the conditions
  • needed to match the handler method to incoming request.
    */
    public abstract class AbstractHandlerMethodMapping extends AbstractHandlerMapping implements InitializingBean
    复制代码
    我的了解为AbstractHandlerMethodMapping为每个注册的handler method,关于每个子类映射类型都维护着其独一的一个映射,就是维护handler method 和URL的关系。主要用于Controller,RequestMapping 等注解
    AbstractHandlerMethodMapping 完成了InitializingBean接口,InitializingBean是在程序启动的时分执行其独一的afterPropertiesSet()办法,那我们就先看一下启动时分的要做哪些操作。