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

下載本文檔

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

文檔簡介

1、黑龍江工程學(xué)院本科生畢業(yè)設(shè)計外文文獻翻譯SpringFrameworkSpring is an open source framework, and Spring was launched in 2003 as a lightweight Java development framework created by Rod Johnson. In a nutshell, Spring is a hierarchical, JavaSE/E

2、Efull-stack (one-stop) lightweight open source framework. The powerful JavaBeans based configuration management using the Inversion of Control (IoC) principle makes application components faster and easier.1. facilitate

3、decoupling and simplify developmentThrough the IoC container provided by Spring, we can control dependencies between objects by Spring, avoiding excessive program coupling caused by hard coding. With Spring, users do not

4、 have to write code for the bottom tier requirements of single instance schema classes, properties, file parsing, and so on, and can focus more on top tier applications.2.AOP programming supportThrough the Spring functio

5、nality provided by AOP, it is easy to implement face oriented programming, and many features that are not easily implemented with traditional OOP can be easily handled by AOP.3. declarative transaction supportIn Spring,

6、we can extricate ourselves from tedious and tedious transaction management code and flexibly manage the transaction through declarative manner, so as to improve the efficiency and quality of development.4. convenience pr

7、ogram testingAlmost all test work can be done in a non container dependent programming manner, and in Spring, testing is no longer expensive, but something to do. For example, Spring supports Junit4 and can easily test S

8、pring programs by annotations.5. convenient integration of various excellent frameworkSpring does not exclude all kinds of excellent open source framework, on the contrary, Spring can reduce the difficulty of the use of

9、Spring framework, provides a framework for a variety of excellent (such as Struts, Hibernate, Hessian, Quartz) directly support the.6. reduce the difficulty of using Java EE APISpring provides a thin layer of encapsulati

10、on for many difficult Java, EE, API (such as JDBC, JavaMail, remote calls, etc.), and the use of these Java EE API is greatly reduced through the simple package of Spring.7.Java source code is a classic example of learni

11、ngSpring source code, clear structure, exquisite design originality, embodies the master of 黑龍江工程學(xué)院本科生畢業(yè)設(shè)計3.聲明式事務(wù)的支持在 Spring 中,我們可以從單調(diào)煩悶的事務(wù)管理代碼中解脫出來,通過聲明式方式靈活地進行事務(wù)的管理,提高開發(fā)效率和質(zhì)量。4.方便程序的測試可以用非容器依賴的編程方式進行幾乎所有的測試工作,在 Spring

12、里,測試不再是昂貴的操作,而是隨手可做的事情。例如:Spring 對 Junit4 支持,可以通過注解方便的測試 Spring 程序。5.方便集成各種優(yōu)秀框架Spring 不排斥各種優(yōu)秀的開源框架,相反,Spring 可以降低各種框架的使用難度,Spring 提供了對各種優(yōu)秀框架(如 Struts,Hibernate、Hessian、Quartz)等的直接支持。6.降低 Java EE API 的使用難度Spring 對很多難用的 Ja

13、va EE API(如 JDBC,JavaMail,遠程調(diào)用等)提供了一個薄薄的封裝層,通過 Spring 的簡易封裝,這些 Java EE API 的使用難度大為降低。7.Java 源碼是經(jīng)典學(xué)習(xí)范例Spring 的源碼設(shè)計精妙、結(jié)構(gòu)清晰、匠心獨運,處處體現(xiàn)著大師對 Java 設(shè)計模式靈活運用以及對 Java 技術(shù)的高深造詣。Spring 框架源碼無疑是 Java 技術(shù)的最佳實踐范例。如果想在短時間內(nèi)迅速提高自己的 Java 技術(shù)水平

14、和應(yīng)用開發(fā)水平,學(xué)習(xí)和研究 Spring 源碼將會使你收到意想不到的效果。MVC——Spring 的作用是整合,但不僅僅限于整合,Spring 框架可以被看做是一個企業(yè)解決方案級別的框架??蛻舳税l(fā)送請求,服務(wù)器控制器(由 DispatcherServlet 實現(xiàn)的)完成請求的轉(zhuǎn)發(fā),控制器調(diào)用一個用于映射的類 HandlerMapping,該類用于將請求映射到對應(yīng)的處理器來處理請求。HandlerMapping 將請求映射到對應(yīng)的處理器

15、Controller(相當(dāng)于 Action)在 Spring 當(dāng)中如果寫一些處理器組件,一般實現(xiàn)Controller 接口,在 Controller 中就可以調(diào)用一些 Service 或 DAO 來進行數(shù)據(jù)操作 ModelAndView 用于存放從 DAO 中取出的數(shù)據(jù),還可以存放響應(yīng)視圖的一些數(shù)據(jù)。 如果想將處理結(jié)果返回給用戶,那么在 Spring 框架中還提供一個視圖組件ViewResolver,該組件根據(jù) Controller

溫馨提示

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

評論

0/150

提交評論