Spring
文章平均质量分 84
Spring源码
性感的大表哥
这个作者很懒,什么都没留下…
展开
-
spring整合Mybatis原理
通过@MapperScan导入了MapperScannerRegistrar类@Retention(RetentionPolicy.RUNTIME)@Target(ElementType.TYPE)@Documented@Import(MapperScannerRegistrar.class)@Repeatable(MapperScans.class)public @interface MapperScan {}原创 2021-06-15 17:11:09 · 161 阅读 · 0 评论 -
spring扩展点整理
1、BeanDefinitionRegistryPostProcessor在Spring启动的过程中可以用来注册、移除、修改BeanDefinition原创 2021-06-15 12:51:05 · 158 阅读 · 0 评论 -
spring源码系列---spirngMvc
1、HandlerMapping中的url什么时候放进去的?以前刚开始工作的时候我记得这个源码流程大概就能说出来,网上资料也是一大堆,但是HandlerMapping中的url什么时候放jin'q原创 2021-06-09 10:27:38 · 176 阅读 · 2 评论 -
spring源码系列---推断构造方法
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory#createBeanInstance原创 2021-06-08 16:50:53 · 277 阅读 · 0 评论 -
spring源码系列---循坏依赖
上来就先加到二级缓存中原创 2021-06-08 00:40:34 · 126 阅读 · 6 评论 -
spring源码系列---依赖注入
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory#doCreateBean原创 2021-06-07 16:51:53 · 292 阅读 · 2 评论 -
spring源码系列---扫描与解析配置类
org.springframework.context.support.AbstractApplicationContext#refreshpublic void refresh() throws BeansException, IllegalStateException { synchronized (this.startupShutdownMonitor) { // 准备刷新的上下文 // Prepare this context for refreshing. prepar原创 2021-06-06 01:07:04 · 388 阅读 · 1 评论 -
spring源码系列---事务
@EnableTransactionManagement 声明式事物,在SpringBoot中不需要写这个注解,因为已经开启了启动配置spring-boot-autoconfigure-2.2.13.RELEASE.jar,在META-INF下的spring.factories文件中配置了开启自动配置的类EnableAutoConfiguration=\TransactionAutoConfiguration...原创 2021-06-04 18:05:40 · 352 阅读 · 1 评论 -
spring源码系列---AOP
@EnableAspectJAutoProxy 开启aop@Target(ElementType.TYPE)@Retention(RetentionPolicy.RUNTIME)@Documented@Import(AspectJAutoProxyRegistrar.class)public @interface EnableAspectJAutoProxy { /** * Indicate whether subclass-based (CGLIB) proxies are to b原创 2021-06-04 16:49:09 · 164 阅读 · 1 评论 -
spring源码系列---spring启动流程
测试类public static void main(String[] args) {// ClassPathXmlApplicationContext applicationContext = new ClassPathXmlApplicationContext("spring-config.xml"); AnnotationConfigApplicationContext applicationContext = new AnnotationConfigApplicationConte原创 2021-06-04 15:05:12 · 212 阅读 · 1 评论