Radio and PodcastRadio and PodcastLive Radio & Podcasts
032 Spring中Bean的生命周期 artwork
Technology

032 Spring中Bean的生命周期

2020年JAVA面试208题 by 小崔爱读书

Sep 6, 202203:12Technology

1 准备Spring的上下文环境,也就是ApplicationContext 2 扫描XML文件,或者是注解,得到一系列的BeanDefinitaion 3 BeanFactoryPostProcessor,Bean工厂的后置处理器, 要对BeanDefinition做一些处理,替换一些属性的值,比如MyBatis的Bean,就会做这个处理。 4 开始实例化Bean,即new出来Java对象,当然,他不是真的new,而是通过反射实例化B...

About This Episode

032 Spring中Bean的生命周期 is an episode from 2020年JAVA面试208题 by 小崔爱读书. 1 准备Spring的上下文环境,也就是ApplicationContext 2 扫描XML文件,或者是注解,得到一系列的BeanDefinitaion 3 BeanFactoryPostProcessor,Bean工厂的后置处理器, 要对BeanDefinition做一些处理,替换一些属性的值,比如MyBatis的Bean,就会做这个处理。 4...

Podcast

This episode belongs to 2020年JAVA面试208题.

Listen Online

Use the player on this page to stream the episode online.

Episode Details

Published Sep 6, 2022, 03:12 long, audio available.

Questions About This Episode

What is 032 Spring中Bean的生命周期 about?

1 准备Spring的上下文环境,也就是ApplicationContext 2 扫描XML文件,或者是注解,得到一系列的BeanDefinitaion 3 BeanFactoryPostProcessor,Bean工厂的后置处理器, 要对BeanDefinition做一些处理,替换一些属性的值,比如MyBatis的Bean,就会做这个处理。 4 开始实例化Bean,即new出来Java对象,当然,他不是真的new,而是通过反射实例化Bean 5 开始初始化Bean,对Bean的属性赋值,即根据Bean的依赖关键,进行Bean的依赖注入 6 对Bean的后置处理,调用BeanPostProcessor,进行AOP相关的操作,这时候就会对Bean进行切面增强。 7 将Bean放入Bean容器,即一个HashMap中,这时候开发者就可以使用这个Bean了。 8 Bean的销毁,当Spring的AppliationContext要关闭的时候,会调用DiposibleBean的destory方法,或者Bean的destory方法,进行Bean销毁。

Where can I listen to 032 Spring中Bean的生命周期?

You can listen to 032 Spring中Bean的生命周期 online on Radio and Podcast. Open the player on this page to stream the available audio.

Which podcast is 032 Spring中Bean的生命周期 from?

032 Spring中Bean的生命周期 is an episode from 2020年JAVA面试208题 by 小崔爱读书.

How long is this episode?

This episode is 03:12 long.

When was this episode published?

This episode was published on Sep 6, 2022.

Can I save 032 Spring中Bean的生命周期 for later?

Yes. Use the heart button on the episode page to add it to your favorite episodes list.

Are there related episodes from 2020年JAVA面试208题?

Yes. This page shows related episodes from 2020年JAVA面试208题 when more episodes are available from the podcast feed.

Quick Answers About This Episode

Where can I listen to 032 Spring中Bean的生命周期?

You can listen to 032 Spring中Bean的生命周期 on this page when the episode audio is available from the podcast feed.

Which podcast is this episode from?

032 Spring中Bean的生命周期 is from 2020年JAVA面试208题 by 小崔爱读书.

What are the episode details?

Published Sep 6, 2022 and 03:12 long