一、SpringBoot中加載bean,可使用註解@compenent直接加載到applicationContext容器中app
二、在直接類@Configuration中,手動註冊bean,如:blog