摘要: 从Spring的包扫描说起 SpringBoot会扫描SpringBootApplication注解标注的类,他所在的包以及这个包的子包,把那里面的Bean注册到applicationContext中,然而,在一个相对大型的项目中,Bean会很多,而且一些框架在starter中会有比较特别的配置(例 阅读全文
posted @ 2021-01-22 10:38 牧之丨 阅读(579) 评论(0) 推荐(0) 编辑
摘要: @ComponentScan(excludeFilters = @ComponentScan.Filter(type = FilterType.ANNOTATION, classes = {Controller.class, RestController.class})) 前言 springboot 阅读全文
posted @ 2021-01-22 10:15 牧之丨 阅读(1781) 评论(0) 推荐(0) 编辑