8、Web
(1)WebApplicationContext
l 應用程序context位於war文件中
Ø 每個應用程序具有單一的根context
Ø 缺省是:/WEB-INF/applicationContext.xml
l context被下面加載:
Ø ContextLoaderListener(Servlet2.4)
Ø ContextLoaderServlet(Servlet2.3)
l 可以使用任何的Web框架,Spring只是作爲一個類庫
l 例子:
Ø web.xml
Ø 在servlet中
9、Web MVC
l 參考《Developoing a Sring Framework MVC application step-by-step》(即將翻譯)
10、遠程訪問(Remoting)
(1)RemoteExporter
l context中的任何Bean多可以被輸出
l RemoteExporter以遠程服務的方式輸出Bean
l 內建支持:
Ø RMI
Ø JAX-RPC
Ø Burlap
Ø Hessian
(2)RmiServiceExporter
l 要被輸出的服務
l 服務輸出者
11、更多
(1)線路圖
l Spring1.1
Ø 支持JMS
Ø 支持JMX
Ø 基於規則的聲明式驗證
Ø AOP pointcut 表達式語言,JSR175 preview
l Spring1.2
Ø 支持OGNL
Ø 支持JCA
Ø 增強RML支持
l Spring1.3 ?
Ø JSF
Ø Portlets
(2)相關的項目
l 胖客戶平臺(sandbox):Spring RCP
l 驗證(sandbox):通用驗證;基於屬性
l 安全:Acegi Security System for Spring
(譯者:2004年7月28日,Spring Framework 1.1 RC1發佈,與1.0相比,主要增加了AspectJ集成、JMS支持、遠程訪問和Web服務支持的增強,具體內容可以參考附帶文檔中的spring-reference.pdf)