| 概念 | 全稱 | 核心作用 | 關鍵實現 |
|---|---|---|---|
| IOC | Inversion of Control | 將物件創建/依賴管理權從程式碼反轉給容器 | BeanFactory / ApplicationContext |
| DI | Dependency Injection | IOC 的具體實現方式:容器自動注入依賴 | 建構子注入 / Setter 注入 / 欄位注入 (@Autowired) |
| AOP | Aspect Oriented Programming | 將橫切關注點(日誌、事務、安全)與業務邏輯分離 | 動態代理 (JDK/CGLIB) + 切面 |
PlatformTransactionManager) 支援 JDBC、JPA、JTA、NoSQL 等多種資源,核心是「原子性邊界」。DispatcherServlet 本身就是一個 Servlet。