Spring
每个人都有一段故事
这个作者很懒,什么都没留下…
展开
-
Spring中ImportSelector跟ImportAware接口的区别与相同点
区别与相同点1.ImportSelector接口实现类不会交给Spring管理,意思是这个接口的实现类的beanDefinition没有存在容器2.ImportSelector接口实现类的解析是在解析配置类的时候解析执行的3.ImportAware接口的实现类会交给Spring管理4.ImportAware接口实现类的解析是在bean已经new出来之后并且已经设置了属性值之后的BeanP...原创 2020-04-09 18:18:09 · 430 阅读 · 0 评论 -
Spring的BeanPostProcessor之ApplicationContextAwareProcessor
ApplicationContextAwareProcessor它的postProcessBeforeInitialization方法用来解析EnvironmentAware、EmbeddedValueResolverAware、ResourceLoaderAware、ApplicationEventPublisherAware、MessageSourceAware、ApplicationCo...原创 2020-02-26 00:21:43 · 792 阅读 · 0 评论 -
Spring容器启动步骤
1. 使用AnnotationConfigApplicationContext创建并启动Spring容器2.AnnotationConfigApplicationContext创建启动容器时this()所做的工作AnnotationConfigApplicationContext继承GenericApplicationContextGenericApplicationContext继承Ab...原创 2020-02-25 16:25:53 · 556 阅读 · 0 评论 -
Spring框架IOC和DI
1.Spring框架组成Test模块支持使用JUnit和TestNG对Spring组件进行测试。DAY1学习Core Container(核心容器)包含有Beans、Core、Context和SpEL模块。DAY1的重点AOP模块提供了一个符合AOP联盟标准的面向切面编程的实现。DAY2的重点Data Access/Integration层包含有JDBC、ORM、OXM、JMS和Tran...转载 2019-05-08 17:17:44 · 192 阅读 · 0 评论 -
Spring源码学习-spring的jar包功能
Spring jar包的描述:针对3.2.2以上版本org.springframework spring-aop ——Spring的面向切面编程,提供AOP(面向切面编程)实现org.springframework spring-aspects —— Spring提供对AspectJ框架的整合org.springframework spring-beans —— SpringIoC(依赖注入...转载 2019-05-08 17:37:32 · 105 阅读 · 0 评论