flex4.6 + spring(注解方式)

上传者: tb_bin | 上传时间: 2025-05-10 23:02:18 | 文件大小: 4.11MB | 文件类型: ZIP
Flex 4.6 和 Spring 的整合是开发富互联网应用程序(RIA)时常用的技术组合,它允许后端服务与前端用户界面高效地交互。本项目基于Eclipse 3.7 IDE,使用Flex 4.6作为客户端展示层,Spring 3.0.6作为后端服务框架,并且采用了注解方式进行配置,简化了传统的XML配置文件。 Flex 是 Adobe 推出的开源框架,用于构建富互联网应用程序,它的核心是ActionScript 3.0,提供了强大的图形和动画处理能力。Flex 4.6 版本引入了Spark组件模型和皮肤机制,提供了更灵活的界面设计和更好的性能。 Spring 框架是Java企业级应用的事实标准,它提供了依赖注入(DI)和面向切面编程(AOP)等核心功能,简化了Java应用的开发。Spring 3.0.6 版本已经支持注解配置,开发者可以通过在类或方法上添加注解来声明bean和服务,减少了大量XML配置的工作。 在Flex和Spring的整合中,主要涉及以下知识点: 1. **AMF(Action Message Format)通信**:Flex和Spring之间的数据交换通常通过AMF进行,这是一种二进制协议,传输速度快,效率高。Spring的`org.springframework.flex.core.MessageBroker`接口和`flex-messaging-common.jar`库支持AMF通信。 2. **Spring-BlazeDS Integration**:BlazeDS是Adobe提供的一个免费的服务器端组件,用于在Flex和Spring之间建立连接。Spring的`spring-flex`模块提供了与BlazeDS集成的工具。 3. **Spring 注解配置**:在Spring 3.0.6中,可以使用如`@Component`、`@Service`、`@Repository`、`@Controller`等注解来标记bean,`@Autowired`注解用于自动装配依赖,`@RequestMapping`用于处理HTTP请求映射。 4. **Flex-Spring 客户端配置**:在Flex客户端,使用`mx:messaging:channels:AMFChannel`配置AMF通道,`mx:RemotingDestination`定义Spring服务的远程目的地。 5. **Flex 事件驱动编程**:Flex应用程序基于事件驱动模型,通过监听和处理事件实现与用户的交互和与服务器的通信。 6. **Eclipse 3.7 IDE集成**:Eclipse 3.7支持Flex Builder插件,可以方便地进行Flex项目的创建、编译和调试。 7. **MXML与ActionScript混编**:Flex 4.6支持MXML和ActionScript的混合编写,MXML用于UI组件的声明,ActionScript处理业务逻辑。 8. **测试与部署**:利用Spring的测试框架进行服务端测试,FlexUnit进行客户端测试。部署时,需将Flex SWF文件和Spring服务部署在相应的服务器上,如Tomcat或Jetty。 这个demo项目可能包含了以上所有这些配置和代码示例,可以帮助开发者理解并快速入门Flex和Spring的整合,特别是在使用注解方式简化配置的情况下,可以更高效地开发和维护项目。如果你在整合过程中遇到问题,这个demo可以作为一个参考,帮助你解决问题。

文件下载

资源详情

[{"title":"( 56 个子文件 4.11MB ) flex4.6 + spring(注解方式)","children":[{"title":"demo","children":[{"title":".actionScriptProperties <span style='color:#111;'> 1.63KB </span>","children":null,"spread":false},{"title":".flexProperties <span style='color:#111;'> 359B </span>","children":null,"spread":false},{"title":"html-template","children":[{"title":"index.template.html <span style='color:#111;'> 5.83KB </span>","children":null,"spread":false},{"title":"swfobject.js <span style='color:#111;'> 25.73KB </span>","children":null,"spread":false},{"title":"history","children":[{"title":"historyFrame.html <span style='color:#111;'> 827B </span>","children":null,"spread":false},{"title":"history.css <span style='color:#111;'> 371B </span>","children":null,"spread":false},{"title":"history.js <span style='color:#111;'> 24.73KB </span>","children":null,"spread":false}],"spread":true},{"title":"playerProductInstall.swf <span style='color:#111;'> 657B </span>","children":null,"spread":false}],"spread":true},{"title":".settings","children":[{"title":"org.eclipse.wst.jsdt.ui.superType.name <span style='color:#111;'> 6B </span>","children":null,"spread":false},{"title":"org.eclipse.wst.common.project.facet.core.xml <span style='color:#111;'> 345B </span>","children":null,"spread":false},{"title":"org.eclipse.wst.common.component <span style='color:#111;'> 463B </span>","children":null,"spread":false},{"title":"org.eclipse.wst.jsdt.ui.superType.container <span style='color:#111;'> 49B </span>","children":null,"spread":false},{"title":".jsdtscope <span style='color:#111;'> 500B </span>","children":null,"spread":false},{"title":"org.eclipse.jdt.core.prefs <span style='color:#111;'> 395B </span>","children":null,"spread":false}],"spread":true},{"title":"src","children":[{"title":"os","children":[{"title":"core","children":[{"title":"UserService.java <span style='color:#111;'> 669B </span>","children":null,"spread":false},{"title":"UserInfo.java <span style='color:#111;'> 374B </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"spring.xml <span style='color:#111;'> 797B </span>","children":null,"spread":false},{"title":"demo.mxml <span style='color:#111;'> 1.65KB </span>","children":null,"spread":false},{"title":"service","children":[{"title":"core","children":[{"title":"UserService.as <span style='color:#111;'> 468B </span>","children":null,"spread":false}],"spread":true},{"title":"RemoteService.as <span style='color:#111;'> 1015B </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":".project <span style='color:#111;'> 1.47KB </span>","children":null,"spread":false},{"title":"WebRoot","children":[{"title":"META-INF","children":[{"title":"MANIFEST.MF <span style='color:#111;'> 39B </span>","children":null,"spread":false}],"spread":true},{"title":"WEB-INF","children":[{"title":"web.xml <span style='color:#111;'> 1.93KB </span>","children":null,"spread":false},{"title":"classes","children":[{"title":"os","children":[{"title":"core","children":[{"title":"UserService.class <span style='color:#111;'> 1.53KB </span>","children":null,"spread":false},{"title":"UserInfo.class <span style='color:#111;'> 721B </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"spring.xml <span style='color:#111;'> 797B </span>","children":null,"spread":false},{"title":"demo.mxml <span style='color:#111;'> 1.65KB </span>","children":null,"spread":false},{"title":"service","children":[{"title":"core","children":[{"title":"UserService.as <span style='color:#111;'> 468B </span>","children":null,"spread":false}],"spread":false},{"title":"RemoteService.as <span style='color:#111;'> 1015B </span>","children":null,"spread":false}],"spread":false}],"spread":true},{"title":"flex-servlet.xml <span style='color:#111;'> 549B </span>","children":null,"spread":false},{"title":"flex","children":[{"title":"messaging-config.xml <span style='color:#111;'> 394B </span>","children":null,"spread":false},{"title":"proxy-config.xml <span style='color:#111;'> 820B </span>","children":null,"spread":false},{"title":"services-config.xml <span style='color:#111;'> 4.32KB </span>","children":null,"spread":false},{"title":"remoting-config.xml <span style='color:#111;'> 377B </span>","children":null,"spread":false}],"spread":true},{"title":"lib","children":[{"title":"org.springframework.aop-3.0.6.RELEASE.jar <span style='color:#111;'> 313.89KB </span>","children":null,"spread":false},{"title":"commons-codec-1.3.jar <span style='color:#111;'> 45.63KB </span>","children":null,"spread":false},{"title":"org.springframework.web-3.0.6.RELEASE.jar <span style='color:#111;'> 388.82KB </span>","children":null,"spread":false},{"title":"org.springframework.asm-3.0.6.RELEASE.jar <span style='color:#111;'> 51.84KB </span>","children":null,"spread":false},{"title":"flex-rds-server.jar <span style='color:#111;'> 52.79KB </span>","children":null,"spread":false},{"title":"spring-flex-core-1.5.0.RELEASE.jar <span style='color:#111;'> 166.18KB </span>","children":null,"spread":false},{"title":"commons-httpclient-3.0.1.jar <span style='color:#111;'> 273.22KB </span>","children":null,"spread":false},{"title":"flex-messaging-core.jar <span style='color:#111;'> 671.24KB </span>","children":null,"spread":false},{"title":"flex-messaging-opt.jar <span style='color:#111;'> 20.16KB </span>","children":null,"spread":false},{"title":"commons-logging.jar <span style='color:#111;'> 37.12KB </span>","children":null,"spread":false},{"title":"org.springframework.expression-3.0.6.RELEASE.jar <span style='color:#111;'> 165.77KB </span>","children":null,"spread":false},{"title":"cglib-nodep-2.2.jar <span style='color:#111;'> 314.81KB </span>","children":null,"spread":false},{"title":"aopalliance.jar <span style='color:#111;'> 4.36KB </span>","children":null,"spread":false},{"title":"org.springframework.web.servlet-3.0.6.RELEASE.jar <span style='color:#111;'> 409.66KB </span>","children":null,"spread":false},{"title":"flex-messaging-proxy.jar <span style='color:#111;'> 64.70KB </span>","children":null,"spread":false},{"title":"org.springframework.beans-3.0.6.RELEASE.jar <span style='color:#111;'> 543.54KB </span>","children":null,"spread":false},{"title":"flex-messaging-remoting.jar <span style='color:#111;'> 18.41KB </span>","children":null,"spread":false},{"title":"org.springframework.core-3.0.6.RELEASE.jar <span style='color:#111;'> 373.23KB </span>","children":null,"spread":false},{"title":"org.springframework.context-3.0.6.RELEASE.jar <span style='color:#111;'> 654.55KB </span>","children":null,"spread":false},{"title":"cfgatewayadapter.jar <span style='color:#111;'> 15.14KB </span>","children":null,"spread":false},{"title":"flex-messaging-common.jar <span style='color:#111;'> 93.65KB </span>","children":null,"spread":false}],"spread":false}],"spread":true}],"spread":true},{"title":".classpath <span style='color:#111;'> 843B </span>","children":null,"spread":false},{"title":"libs","children":null,"spread":false}],"spread":true}],"spread":true}]

评论信息

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明