SpringFramework(11) (完)
来源:百度文库 编辑:神马文学网 时间:2024/04/29 21:10:32
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
contextConfigLocation /WEB-INF/applicationContext.xml ...web.context.ContextLoaderListener
Ø 在servlet中
WebApplicationContextUtils.getWebApplicationContext(ServletContext);
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 要被输出的服务
class MyServiceImpl implements MyService {...}
l 服务输出者
app.MyService myService
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)
(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中
WebApplicationContextUtils.getWebApplicationContext(ServletContext);
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 要被输出的服务
class MyServiceImpl implements MyService {...}
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)
SpringFramework(11) (完)
SpringFramework(1)
SpringFramework(4)
SpringFramework(5)
SpringFramework(6)
SpringFramework(7)
SpringFramework(8)
SpringFramework(9)
SpringFramework(1)
SpringFramework中的AOP简单使用
SpringFramework中文论坛 :: 阅读主题 - 分布式环境下怎样使用hiber...
2009高考英语强化训练——完形填空11(含详细分析)
09高考英语强化训练——完形填空11(含详细分析)
背完,你的英语口语绝对11
管理的最高境界不是完11
什么是资金管理(完)
做人难7(完)
《股谱》全集一次发完!(新转11)
【翻译文章】什么是web 2.0 (完)
FreeMarker设计指南(4) (完)
红灯区倩影(全文1完)
红灯区倩影(全文2完)
1小时走完故宫(1)
您可能不了解的美国(完)