1股票交易系统——网上信息发布、交易系统管理摘要:随着经济的发展,股票证劵已逐步步入了人们的日常生活,在Internet飞速发展的今天,证劵交易的方式已发生了翻天覆地的变化,人们不再需要像以往那样,进入交易所进行柜台交易,特别是通过网络或Internet实现家庭“大户室”,已经越来越引起广大投资者的欢迎,许多人已加入到网上炒股的行列来,轻轻点击,下单交易,正是对这种交易方式的形象描述。本系统设计实现股票交易系统中网上信息发布及交易管理系统部分,系统主要包括用户登录、查看股票、股票代码转换、查看日K线图、查看均线图、修改用户密码、设置股票的涨跌停限制等功能。本说明书结合应用系统多层次体系结构发展的现状,对Flex、Spring和Hibernate框架进行深入分析。应用Flex作为表示层实现,应用Hibernate作为持久层实现,并结合Spring技术作为业务层实现,进行框架整合,从而设计出了一套足够灵活、松散耦合、可扩展且高效的RIA系统。关键词:股票交易,网上信息发布,交易管理,RIA,Flex2StockExchangeSystem——InternetInformationPublishandExchangeSystemforManagementAbstract:Withtheeconomydevelopment,stocktransactionhasbecomepopularinthedailylife.Nowadays,themodeofstocktransactionhaschangedgreatlywiththehelpofInternettechnology.Differentfrommakingstocktransactiononacounter,nowwecandoitthroughnetwork,especiallyInternet.Theso-called“clickandtransaction”modehasattractedmoreandmoreinvestorstojoinit.ThissystemdescribesabouttheImplementationoftheInternetInformationPublishandExchangeSystemforManagementinStockExchangeSystem.Thereareuserlogin,viewstock,stockcodeconversion,seethecandlestickchart,seethelinechart,changetheuserpassword,setupsanddownsofthestockstoplimitinginthissystem.Accordingtothepresentsituationofmulti—hierarchicalarchitecturedevelopmentofapplicationsystem,theauthoranalyzedthoroughlytheFlex,SpringandHibernateframeworks.Itintegratedtheframeworkstodesignasetofsufficientflexible,loosecouplingexpandableandhigheffectiveRIAteachingEvaluationSystembymeanofFlexaspresentationlayer.,HibernateasenduringlayerandincombinationwithSpringasbusinesslayer.Keywords:StockExchange,Internetinformationpublish,exchangemanagement,Flex,RIAI目录引言.....................................................................1第1章概述...........................................................21.1系统背景及意义..................................................21.2开发流程........................................................21.2.1开发流程图...............................................21.2.2开发步骤.................................................3第2章开发工具及所用技术介绍.......................................42.1开发工具介绍....................................................42.1.1MyEclipse介绍...........................................42.1.2FlashBuilder介绍.......................................42.1.3Tomcat介绍..............................................42.1.4MySQL介绍...............................................42.2所用技术介绍.....................................................52.2.1RIA......................................................52.2.2Flex简介................................................52.2.3BlazeDS简介.............................................72.2.4Spring技术概述..........................................82.2.5Hibernate技术概述.......................................9第3章系统需求分析.................................................103.1系统功能简介...................................................103.2系统的功能分析.................................................113.3系统流程分析...................................................123.4系统状态分析...................................................13第4章系统设计......................................................144.1系统概述.......................................................14II4.2术语定义.......................................................144.3数据库设计.....................................................144.3.1数据库物理模型设计......................................154.3.2数据字典................................................15第5章系统实现......................................................175.1系统分块描述...................................................175.1.1登陆....................................................175.1.2注册....................................................175.1.3查看股票................................................185.1.4查看K线图..............................................195.1.5查看走线图..............................................205.1.6查询股票................................................205.1.7设置涨跌停限制..........................................215.2框架搭建流程...................................................215.2.1搭建前准备..............................................215.2.2添加ApacheTomcat运行,集成JDK.........................215.2.3创建Java/Flex集成项目..................................235.2.4添加对Spring的支持.....................................265.2.5Spring与Hibernate的集成...............................275.3框架搭建原因以及体系说明.......................................285.4关键代码.......................................................295.4.1股票查询代码............................................29第6章总结...........................................................31结语....................................................................32参考文献...............................................................33致谢.....................................................错误!未定义书签。第1页共34页引言股票至今已有将近400年的历史,股票是社会化大生产的产物,随着国内证劵股票交易市场的成熟,炒股大军的规模越累越大,股票交易系统显得尤为重要,股民不仅仅需要随时得到实时股票行情,根据行情买进或抛出股票,并且需要一种更友好的交互方式。然而随着Web应用程序的复杂性越累越高,传统的Web应用程序已经不能满足Web浏览者的要求。本文第一章作了概述,第二章讲述了系统的开发环境及所用技术,着重阐述了Flex的特点及其优势,在本文第三章中讲述了系统的整体设计。第四、五章是全文的核心内容,在对Flex技术进行深入研究的基础上,对此股票交易系统中网上信息发布及交易管理系统子系