annotation-config, annotation-driven, compont-scan三者区别
annotaion-driven 标签
这个标签对应的实现类是
org.springframework.web.servlet.config.AnnotationDrivenBeanDefinitionParser
仔细阅读它的注释文档可以很明显的看到这个类的作用。解析这个文档:
这个类主要注册8个类的实例:
1.RequestMappingHandlerMapping
2.BeanNameUrlHandlerMapping
3.RequestMappingHandlerAdapter
4.HttpR
转载
2020-10-23 22:52:30 ·
91 阅读 ·
0 评论