Spring 相關注解

  1. 使用 @Autowired | @Resource | @Component| @Qualifier
    用到了{上下文/註解配置}

  2. component-scan 「上下文組建掃描」
    隱式註冊了AutowiredAnnotationBeanPostProcessor 和CommonAnnotationBeanPostProcessor
    因此當使用 後,就可以將 移除了。

  3. @Controller | @RequestMapping通過
    註冊瞭如下類:

       1.RequestMappingHandlerMapping
    
        2.BeanNameUrlHandlerMapping
    
        3.RequestMappingHandlerAdapter
    
        4.HttpRequestHandlerAdapter
    
        5.SimpleControllerHandlerAdapter
    
        6.ExceptionHandlerExceptionResolver
    
        7.ResponseStatusExceptionResolver
    
        8.DefaultHandlerExceptionResolver
    

參考:
1. https://www.cnblogs.com/linjiaxin/p/6121468.html
2. http://blog.csdn.net/catoop/article/details/50068573
3. http://www.iteye.com/problems/66133

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章