Spring 源码分析
是摩卡不是抹茶呀
纯粹地爱Java
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
Spring 源码分析之@ComponentScan 深入解读
文章目录解读@ComponentScan解读FilterType /* * @since 3.1 */ @Retention(RetentionPolicy.RUNTIME) @Target(ElementType.TYPE) @Documented @Repeatable(ComponentScans.class) public @interface ComponentScan { /** * Alias for {@link #basePackages}. * <p>Allow原创 2020-06-27 10:16:23 · 429 阅读 · 0 评论 -
Spring 源码分析之@Bean 深入解读
文章目录@Bean带参方法 /** * Indicates that a method produces a bean to be managed by the Spring container. * <p> * 说明: * 1. 被@Bean注解标识的方法能够生成一个Bean,并且该Bean由Spring容器进行管理 * 2. 返回类型即为Bean类型 * 3. 方法名即为Bean的Id * 4. 我们可以通过@Bean(name = "")的方式来指定Bean的Id,name的原创 2020-06-27 10:13:48 · 489 阅读 · 0 评论 -
Spring 源码分析之@Autowired 深入解读
文章目录@Autowired 源码分析多个同类型的Bean,直接使用@Autowired时@Primary与@Bean,@Autowired搭配使用总结 @Autowired 源码分析 /* * @since 2.5 * @see AutowiredAnnotationBeanPostProcessor * @see Qualifier * @see Value */ @Target({ElementType.CONSTRUCTOR, ElementType.METHOD, ElementType原创 2020-06-27 10:09:26 · 611 阅读 · 0 评论
分享