I'm learning the Spring framework, so I'd like to summarize what I've learned. The details are omitted.
The life cycle of beans managed by DI container is as follows
Understand what is happening before and after the above three phases so that you can utilize it.
There are three steps in the initialization phase.
--Collect bean definitions such as Java Config --Rewriting definition information by Bean Factory Post Processor
Construct & Dependency Injection --Bean instantiation --Injection
Post Construct Post Construct is divided into three processes.
PreDestroy is called in the end phase.
that's all. good job.
[Thorough introduction to Spring Java application development with Spring Framework](https://www.amazon.co.jp/Spring%E5%BE%B9%E5%BA%95%E5%85%A5%E9%96%80- Spring-Framework% E3% 81% AB% E3% 82% 88% E3% 82% 8BJava% E3% 82% A2% E3% 83% 97% E3% 83% AA% E3% 82% B1% E3% 83% BC% E3% 82% B7% E3% 83% A7% E3% 83% B3% E9% 96% 8B% E7% 99% BA-% E6% A0% AA% E5% BC% 8F% E4% BC% 9A % E7% A4% BENTT% E3% 83% 87% E3% 83% BC% E3% 82% BF / dp / 4798142476 /)
Recommended Posts