How does spring automatically assemble beans?

Alibaba cloud Q & A 2022-02-13 05:23:02 阅读数:864

spring automatically assemble beans

A detailed description ?

Take the answer 1:

spring In profile Node autowire Parameters can be controlled bean The way of automatic assembly

default - The default way and "no" The same way no - Not automatically assembled , Need to use Nodes or parameters byName - Assemble according to the name byType - Assemble according to type constructor - Assemble according to constructor

copyright:author[Alibaba cloud Q & A],Please bring the original link to reprint, thank you.