基于UML模型的企業(yè)級(jí)J2EE Web應(yīng)用代碼自動(dòng)生成系統(tǒng)的研究與實(shí)現(xiàn)
本文選題:自動(dòng)代碼生成 切入點(diǎn):UML 出處:《中國(guó)海洋大學(xué)》2015年碩士論文 論文類型:學(xué)位論文
【摘要】:計(jì)算機(jī)的廣泛應(yīng)用和Web技術(shù)的快速發(fā)展使人們進(jìn)入了互聯(lián)網(wǎng)時(shí)代,為人們的生產(chǎn)生活提供了極大的便利。與此同時(shí),J2EE Web技術(shù)的廣泛應(yīng)用,推動(dòng)廠互聯(lián)網(wǎng)技術(shù)的進(jìn)步。人們?cè)谙硎躓eb應(yīng)用帶來(lái)的良好體驗(yàn)的同時(shí),對(duì)Web應(yīng)用的要求也越來(lái)越高,從而使得Web應(yīng)用邏輯越來(lái)越復(fù)雜,代碼規(guī)模越來(lái)越龐大。隨著代碼復(fù)雜度的提高,軟件編碼的錯(cuò)誤率也越來(lái)越高。目前,大多數(shù)軟件開(kāi)發(fā)仍舊停留在手工編寫(xiě)代碼階段,開(kāi)發(fā)人員花費(fèi)大量時(shí)間去編寫(xiě)一些重復(fù)而且簡(jiǎn)單的代碼。由J2EE Web應(yīng)用涉及到計(jì)算機(jī)技術(shù)不再是單一的編程語(yǔ)言,而是幾種編碼技術(shù)的集合,在進(jìn)行技術(shù)整合過(guò)程中,往往會(huì)發(fā)生不可控的錯(cuò)誤。以上這些原因增大了J2EE Web項(xiàng)目開(kāi)發(fā)的風(fēng)險(xiǎn),因此,為了提高軟件的開(kāi)發(fā)效率,開(kāi)發(fā)一個(gè)自動(dòng)代碼生成器勢(shì)在必行。通過(guò)對(duì)以往代碼生成理論的研究,發(fā)現(xiàn)了“自動(dòng)化生成”、“操作可視化”、“多表關(guān)聯(lián)”、“自動(dòng)部署”幾方面問(wèn)題仍沒(méi)有得到解決。本文首先通過(guò)研究MDA理論,結(jié)合流行的MVC設(shè)計(jì)模式,依托JsUml2、FreeMarke、Hibernate、Ant等技術(shù),通過(guò)理論和實(shí)踐結(jié)合,設(shè)計(jì)實(shí)現(xiàn)了基于UML數(shù)據(jù)建模、HTML5可視化控件、模板文件定義和模板引擎相結(jié)合的J2EE Web代碼自動(dòng)生成系統(tǒng)。具體研究過(guò)程如下:首先,按照MDA模型驅(qū)動(dòng)架構(gòu)思想對(duì)自動(dòng)代碼生成系統(tǒng)各部分進(jìn)行設(shè)計(jì)。生成系統(tǒng)由UML設(shè)計(jì)、業(yè)務(wù)模型、模板管理、模板引擎和自動(dòng)部署五部分組成,對(duì)各個(gè)模塊進(jìn)行了深入分析,然后對(duì)各模塊的具體功能進(jìn)行了設(shè)計(jì)。其次,對(duì)生成系統(tǒng)各模型進(jìn)行詳細(xì)的編碼實(shí)現(xiàn),本系統(tǒng)一個(gè)創(chuàng)新點(diǎn)是采用B/S技術(shù)架構(gòu),引入云建模技術(shù),使得建模人員可協(xié)作完成對(duì)系統(tǒng)模型的建立,使用成熟SpringMVC框架作為系統(tǒng)基礎(chǔ)支撐,保證系統(tǒng)的穩(wěn)定性。另外一個(gè)創(chuàng)新點(diǎn)是提出一套基于UML建模技術(shù)和數(shù)據(jù)庫(kù)技術(shù)的業(yè)務(wù)模型機(jī)制,增加了對(duì)多表關(guān)聯(lián)的處理,實(shí)現(xiàn)了UML模型到業(yè)務(wù)模型的自動(dòng)轉(zhuǎn)換,同時(shí)實(shí)現(xiàn)對(duì)數(shù)據(jù)庫(kù)的詳細(xì)設(shè)計(jì)。最后在創(chuàng)業(yè)園區(qū)管理系統(tǒng)代碼生成的應(yīng)用中描述了整個(gè)自動(dòng)代碼生成系統(tǒng)的工作流程,其中主要實(shí)踐了UML模型的建立、業(yè)務(wù)模型的轉(zhuǎn)換、模板的制作和代碼的生成功能, 驗(yàn)證了本文基于UML模型的可視化自動(dòng)代碼生成技術(shù)的可行性。
[Abstract]:With the wide application of computer and the rapid development of Web technology, people have entered the Internet era, which provides great convenience for people's production and life. At the same time, J2EE Web technology is widely used. While enjoying the good experience brought by Web application, people also have higher and higher requirements for Web application, which makes the logic of Web application more and more complex. With the increase of code complexity, the error rate of software coding becomes higher and higher. At present, most software development still stays in the phase of manual coding. Developers spend a lot of time writing repetitive and simple code. The J2EE Web application involves that computer technology is no longer a single programming language, but a collection of several coding technologies, and in the process of technology integration, These reasons increase the risk of J2EE Web project development. Therefore, in order to improve the efficiency of software development, it is imperative to develop an automatic code generator. The problems of "automatic generation", "operation visualization", "multi-table association" and "automatic deployment" have not been solved. Firstly, by studying the theory of MDA, combining with the popular MVC design pattern, this paper relies on JsUml2FreeMarke-Hibernate Ant and other technologies, such as JsUml2FreeMarke-HibernateAnt, etc. Through the combination of theory and practice, a J2EE Web code automatic generation system based on UML data modeling and HTML 5 visual control, template file definition and template engine is designed and implemented. According to the idea of MDA model driven architecture, every part of automatic code generation system is designed. The generating system consists of five parts: UML design, business model, template management, template engine and automatic deployment. Then, the specific functions of each module are designed. Secondly, every model of the generation system is coded and implemented in detail. One of the innovations of this system is to adopt the B / S technology architecture and introduce cloud modeling technology. So that the modeler can work together to build the system model, using the mature SpringMVC framework as the basic support of the system, Another innovation is to put forward a set of business model mechanism based on UML modeling technology and database technology, to increase the processing of multi-table association, and to realize the automatic transformation from UML model to business model. At the same time, the detailed design of the database is realized. Finally, the workflow of the automatic code generation system is described in the application of code generation of the business park management system, in which the establishment of the UML model and the transformation of the business model are mainly practiced. The function of template making and code generation verifies the feasibility of the visualization automatic code generation technology based on UML model in this paper.
【學(xué)位授予單位】:中國(guó)海洋大學(xué)
【學(xué)位級(jí)別】:碩士
【學(xué)位授予年份】:2015
【分類號(hào)】:TP393.09
【相似文獻(xiàn)】
相關(guān)期刊論文 前10條
1 李鳳艷;常用會(huì)計(jì)憑證自動(dòng)生成系統(tǒng)的研究[J];遼寧大學(xué)學(xué)報(bào)(自然科學(xué)版);2005年02期
2 馬書(shū)堂;;試卷自動(dòng)生成系統(tǒng)的研究[J];長(zhǎng)江大學(xué)學(xué)報(bào)(自科版);2006年04期
3 孫黎君;顧翔;;一種試卷自動(dòng)生成系統(tǒng)的研究與實(shí)現(xiàn)[J];福建電腦;2007年12期
4 魏星;;試卷自動(dòng)生成系統(tǒng)的設(shè)計(jì)與實(shí)現(xiàn)[J];福建電腦;2008年09期
5 張玉葉;郝強(qiáng);;試卷自動(dòng)生成系統(tǒng)的設(shè)計(jì)與實(shí)現(xiàn)[J];濟(jì)南職業(yè)學(xué)院學(xué)報(bào);2008年05期
6 田敬軍;杜學(xué)東;;網(wǎng)站自動(dòng)生成系統(tǒng)的開(kāi)發(fā)[J];唐山師范學(xué)院學(xué)報(bào);2009年02期
7 張海飛;劉全;;工程決算文件自動(dòng)生成系統(tǒng)的開(kāi)發(fā)與應(yīng)用[J];貴州師范大學(xué)學(xué)報(bào)(自然科學(xué)版);2009年04期
8 唐雅媛;徐德智;;基于本體的試卷自動(dòng)生成系統(tǒng)研究[J];湖南科技學(xué)院學(xué)報(bào);2009年12期
9 張海飛;劉全;;工程決算文件自動(dòng)生成系統(tǒng)的開(kāi)發(fā)與應(yīng)用[J];蘇州科技學(xué)院學(xué)報(bào)(工程技術(shù)版);2010年01期
10 王峗;敖俊;姚愚;張琪;;氣象決策短信自動(dòng)生成系統(tǒng)設(shè)計(jì)與實(shí)現(xiàn)[J];電腦編程技巧與維護(hù);2012年02期
相關(guān)會(huì)議論文 前10條
1 梁國(guó)平;張懷;孫荀英;;并行有限元程序自動(dòng)生成系統(tǒng)及其在計(jì)算力學(xué)中的應(yīng)用前景[A];“力學(xué)2000”學(xué)術(shù)大會(huì)論文集[C];2000年
2 劉硯韜;付雨之;陳力;張伶俐;;醫(yī)院藥劑科藥品電子醫(yī)囑標(biāo)簽自動(dòng)生成系統(tǒng)的建立與應(yīng)用[A];第四屆臨床藥學(xué)實(shí)踐案例分析與合理用藥學(xué)術(shù)研討會(huì)論文集[C];2011年
3 戴前偉;彭振斌;;帷幕灌漿工程圖表自動(dòng)生成系統(tǒng)的開(kāi)發(fā)研究[A];全國(guó)首屆巖石錨固與注漿學(xué)術(shù)會(huì)議論文集[C];1995年
4 張國(guó)光;林曉梅;;石化企業(yè)生產(chǎn)計(jì)劃優(yōu)化模型自動(dòng)生成系統(tǒng)[A];2008’“先進(jìn)集成技術(shù)”院士論壇暨第二屆儀表、自動(dòng)化與先進(jìn)集成技術(shù)大會(huì)論文集[C];2008年
5 鄭李磊;謝磊;王曉暄;盧咪咪;楊玉蓮;張艷寧;;中文新聞字幕自動(dòng)生成系統(tǒng)的設(shè)計(jì)與實(shí)現(xiàn)[A];第18屆全國(guó)多媒體學(xué)術(shù)會(huì)議(NCMT2009)、第5屆全國(guó)人機(jī)交互學(xué)術(shù)會(huì)議(CHCI2009)、第5屆全國(guó)普適計(jì)算學(xué)術(shù)會(huì)議(PCC2009)論文集[C];2009年
6 余平祥;張麗紅;劉偉章;余金昌;;雙代號(hào)網(wǎng)絡(luò)圖自動(dòng)生成系統(tǒng)研究與實(shí)現(xiàn)[A];農(nóng)業(yè)系統(tǒng)工程理論與實(shí)踐研究——全國(guó)農(nóng)業(yè)系統(tǒng)工程學(xué)術(shù)研討會(huì)論文集[C];2006年
7 魯志兵;胡金柱;胡燕;焦金丹;舒江波;;門戶網(wǎng)自助系統(tǒng)的擴(kuò)展有色Petri網(wǎng)建模與分析[A];2006年全國(guó)開(kāi)放式分布與并行計(jì)算機(jī)學(xué)術(shù)會(huì)議論文集(三)[C];2006年
8 王莉東;湯秋末;李輝;;BTOS報(bào)表自動(dòng)生成系統(tǒng)的實(shí)現(xiàn)[A];1993中國(guó)控制與決策學(xué)術(shù)年會(huì)論文集[C];1993年
9 要丹;付保宇;邵紅梅;陳春瑞;;實(shí)驗(yàn)室數(shù)據(jù)分析評(píng)價(jià)系統(tǒng)和地質(zhì)柱狀圖自動(dòng)生成系統(tǒng)研制[A];第八屆古地理學(xué)與沉積學(xué)學(xué)術(shù)會(huì)議論文摘要集[C];2004年
10 宋海林;邱顯杰;王兆其;;三維室內(nèi)場(chǎng)景的地面布置圖自動(dòng)生成系統(tǒng)[A];圖像圖形技術(shù)研究與應(yīng)用(2010)[C];2010年
相關(guān)重要報(bào)紙文章 前10條
1 李非;當(dāng)涂自主研發(fā)出入境申請(qǐng)表自動(dòng)生成系統(tǒng)[N];人民公安報(bào);2011年
2 張保國(guó);南寧求職者受益“表格自動(dòng)生成系統(tǒng)”[N];中國(guó)勞動(dòng)保障報(bào);2007年
3 吉U,
本文編號(hào):1633929
本文鏈接:http://www.wukwdryxk.cn/shoufeilunwen/xixikjs/1633929.html