2023年全國(guó)碩士研究生考試考研英語(yǔ)一試題真題(含答案詳解+作文范文)_第1頁(yè)
已閱讀1頁(yè),還剩5頁(yè)未讀, 繼續(xù)免費(fèi)閱讀

下載本文檔

版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請(qǐng)進(jìn)行舉報(bào)或認(rèn)領(lǐng)

文檔簡(jiǎn)介

1、Praveen.Gupta et al. / International Journal of Engineering Science and Technology Vol. 2(6), 2010, 1684-1689 Spring Web MVC Framework for rapid open source J2EE application development: a case studyPraveen Gupta Rese

2、arch Scholar, Singhania University Pacheri Bari, Rajasthan, India Prof. M.C. Govil Govt. Mahila Engineering College Ajmer, Rajasthan, India Abstract— Today it is the highly competitive for the development of Web appl

3、ication, it is the need of the time to develop the application accurately, economically, and efficiently. We are interested to increase productivity and decrease complexity. This has been an underlying theme in a move

4、ment to change the way programmers approach developing Java 2 Platform, Enterprise Edition (J2EE) Web applications. Our focus is how to create J2EE-compliant software without using Enterprise Java Beans (EJB). The one

5、 of the best alternative is the Spring framework, which provides less services but it is much less intrusive than EJB. The driving force behind this shift is the need for greater productivity and reduced complexity in

6、the area of Web application software development and implementation. In this paper, we briefly describe spring underlying architecture and present a case study using Spring web MVC Framework. Index Terma: MVC, Spring,

7、 XML I. INTRODUCTION Web is the very complex issues these days. Since the desire of the companies and organizations are increasing so the complexity and the performance of the web programming matters. Complexity with th

8、e different types of communication devices is increasing. The business is demanding applications using the web and many communication devices. So with the increase load of the data on the internet we have to take care

9、of the architecture issue. Let us discuss how it works fast using spring web mvc framework the rapid application development while maintaining the Model View Architecture of the application. Spring frameworks comes wit

10、h rich set of features, let us discuss these features in brief. 1 Inversion Of Control: Inversion of Control or IoC is one of the techniques used to wire services or components to an application program. The IoC is “

11、A software design pattern and set of associated programming techniques in which the flow of control of a system is inverted in comparison to the traditional interaction mode.” In IoC instead of an application calling t

12、he framework, it is the framework that calls the components specified by the application. The IoC can be explained as “Injection of required resources or dependency at run-time into the dependent resource“ which is als

13、o known as Dependency Injection. The org.springframework.beans.factory.BeanFactory is the actual representation of the Spring IoC container which is responsible for containing and managing the beans. The BeanFactory in

14、terface is the central IoC container interface in Spring. A bean is simply an object that is instantiated and managed by a Spring IoC container. These beans and the dependencies between them are reflected in the config

15、uration metadata used by a container. 2. Constructor Dependency Injection: we can use the java class constructor to load the bean values. A java Class is defined with a constructor of single field. Details.xml file pro

16、vides the value to be passes to the constructor. Now another java loads the xml file using the BeanFactory Method. This uses the xml file to load values in the constructor of the java file. This is used to pass values

17、to the constructor. 3. Setter Dependency Injection: With every bean we defined the getters and setters. We can also use setters method to set the values in the beans. setters method overrides the values loaded from th

18、e beans. ISSN: 0975-5462 1684Praveen.Gupta et al. / International Journal of Engineering Science and Technology Vol. 2(6), 2010, 1684-1689 The following figure 02 shows the sequence diagram of the spring model. In this

19、the dispatcher Servlet is the entry point for the application. As soon the Dispatch Servlet get the request for the services and it will decides the handler. All handlers are mapped with the Servlet. Handler will come

20、in action and will call the respective controller and the pass the request parameters to it. Now controller comes in action, it contains business logic and a ModelAndView is associated with the controller. on executi

21、on it will return the ModelAndView to the Dispatch Servlet. This ModelAndView contains the data and view name. Dispatcher Servlet gets the ModelAndView from the controller. It contains the data and view name. Servlet w

22、ill call the view resolver. View resolver will identify the name of the view through which data is to be presented. Finally it will present the data to the respective and appropriate format to the user. Figure 2: Seq

23、uence flow of application in the spring framework. IV. SPRING AND XML Xml is widely used in the spring framework. It simplify the development process and saves time. xml is used to store the data, which is used during

24、the execution of application. Contr oller Front controller View template Return response Render response Return control Delegate request Delegate rendering of response model model Dispatch er Servlet Handler Mapp

溫馨提示

  • 1. 本站所有資源如無(wú)特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請(qǐng)下載最新的WinRAR軟件解壓。
  • 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請(qǐng)聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
  • 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁(yè)內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
  • 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
  • 5. 眾賞文庫(kù)僅提供信息存儲(chǔ)空間,僅對(duì)用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對(duì)用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對(duì)任何下載內(nèi)容負(fù)責(zé)。
  • 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請(qǐng)與我們聯(lián)系,我們立即糾正。
  • 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶因使用這些下載資源對(duì)自己和他人造成任何形式的傷害或損失。

最新文檔

評(píng)論

0/150

提交評(píng)論