模板方法:用來解決代碼重復(fù)的問題。比如. RestTemplate, JmsTemplate, JpaTemplate。 觀察者模式:定義對象鍵一種一對多的依賴關(guān)系,當(dāng)一個對象的狀態(tài)發(fā)生改變時,所有依賴于它的對象都會得到通知被制動更新,如Spring中l(wèi)istener的實(shí)現(xiàn)--ApplicationListener。 7、Spring的自動裝配: ...
www.dbjr.com.cn/it/7343...html 2025-5-16