1. 程式人生 > >Spring -13 -Spring 中常用註解總結

Spring -13 -Spring 中常用註解總結

[email protected] 建立類物件,相當於配置<bean/>
[email protected] 與@Component 功能相同.
  2.1都寫在ServiceImpl 類上.
[email protected] 與@Component 功能相同.   3.1寫在資料訪問層類上.
[email protected] 與@Component 功能相同.   4.1寫在控制器類上.
[email protected](不需要寫物件的get/set)   5.1java 中的註解   5.2預設按照byName 注入,如果沒有名稱物件,按照byType 注入   5.2.1建議把物件名稱和spring 容器中物件名相同
[email protected]
(不需要寫物件的get/set) 6.1spring 的註解 6.2預設按照byType 注入.
[email protected]() 獲取properties 檔案中內容 [email protected]() 定義切點
[email protected]() 定義切面類 [email protected]() 前置通知 [email protected]() 後置通知
[email protected] 後置通知,必須切點正確執行 [email protected] 異常通知
[email protected]
環繞通知