Resources can be allocated as needed to avoid unnecessary waste.
It can reduce the competition and locking problems caused by concurrent access, and improve the performance and scalability of the system.
You can flexibly adjust the life cycle and visible range of Bean instances according to business requirements, and improve the flexibility and maintainability of the code.