freepeople性欧美熟妇, 色戒完整版无删减158分钟hd, 无码精品国产vα在线观看DVD, 丰满少妇伦精品无码专区在线观看,艾栗栗与纹身男宾馆3p50分钟,国产AV片在线观看,黑人与美女高潮,18岁女RAPPERDISSSUBS,国产手机在机看影片

正文內(nèi)容

外文翻譯---一種基于hibernate、struts和spring的j2ee應(yīng)用開發(fā)框架-其他專業(yè)-文庫吧資料

2025-01-27 09:17本頁面
  

【正文】 implementation hierarchy, consisting of AbstractController, AbstractCommandController, MultiActionController, SimpleFormController, AbstractWizardFormController. Application controllers will typically be subclasses of those. Note that you can choose an appropriate base class: If you don39。s Hessian/Burlap. The framework is designed to grow with the needs of your applications, in terms of technology choice: For example, you will probably use JTA via Spring39。s web support or a different one, Spring allows for building a true dedicated middle tier in the web container, with the option to reuse exactly the same business logic in test environments or standalone applications. And within J2EE, your business logic will not unnecessarily depend on container services like JTA or EJB allowing plex, wellarchitected web applications to run in a simple container like Tomcat or that Spring doesn39。s own web support is nicely integrated with the framework39。s introduction is a kind of development strategy, lead the Hibernate into the model layer of Struts frame, usage it to carry on a data to pack with reflect to shoot, provide hold out for long time turn of support. 4 usage Hibernate and the Struts development J2 EE application system structure diagram 3 manifestation according to Hibernate and Struts development strategy of system structure diagram. the Spring Frame Spring isn39。 It accept a customer of importation, give176。 2)tradition of J2 EE application much the adoption is according to the EJB heavy weight frame, this kind of frame suitable for develop a large business enterprise application, but usage the EJB container carry on development and adjust to try to need to be waste a great deal of lowering the Ou of code to match sex, exaltation system of development efficiency, this text put forward one kind EE according to the J2 of the Struts frame 、 the Hibernate frame and the Spring frame application development strategy. The Hibernate Frame Data39。由于 Hibernate所帶的連接池主要用于測試,性能不是很好,可以通過 JNDI將其修改為使用 Tomcat的連接池。 在開發(fā)過程中,使用 Eclipse做為開發(fā)環(huán)境,同時加載了對 Struts、 Spring及 Hibernate提供更好的控制和支持的第三方插件 MyEclipse, Web服務(wù)器使用 Tomcat, 數(shù)據(jù)庫選用了 Mysql。 以在 J2EE應(yīng)用中非常普遍的用戶登錄過程為例來說明上述體系結(jié)構(gòu)是如何具體運用的。 可訂制的 綁 定和數(shù)據(jù)校驗作為應(yīng)用級的輸入機制的錯誤校驗 ,固定日期和數(shù)字 綁 定 ,例如 ,通過手動檢查和轉(zhuǎn)換業(yè)務(wù)對象來替換單個的 string。 如果 僅僅 聚焦于 web 支持 ,Spring 的一些顯著特點是 清楚分離 :controller,validator,mand object,form object,model object,和 DispatcherServlet,handler mapping vs view resolver 等等強大而且直接的框架和作為 JavaBeans 的應(yīng)用配置 ,包括簡單的參照和應(yīng)用內(nèi)容 ,例如 ,從 web 控制器到業(yè)務(wù)對象和數(shù)據(jù)校驗 。 所有你注冊 bean 和 Spring 服務(wù)都可以在不需要 Spring的 web MVC的情況下都可以 輕松掌握 。 View 名稱是非常高端的配置 , 不是通過 bean name,一個 properties 文件就是通過你自己的 ViewResolver.這個抽象的 model Map 允許你在視圖層面完成提取 ,沒有任何的爭辯JSP/Velocity 或者其他 ,每一種都可以直接完整使用 .這個 model Map 還可以簡單得得到適當(dāng)?shù)母袷交瘮?shù)據(jù)的轉(zhuǎn)換 ,像 JSP 請求屬性或者 Velocity 模版模式 . 如果你不想用 Spring的 web MVC, 但是想借用 Spring嫁接 其他的解決方案 ,你可以非常簡單地通過 Spring 繼承你自己的 web 框架 , 你可以非常簡單地通過ContextLoaderListener 啟動一個 Spring root application context,并且 ,通過 Struts 或者 WebWork 的 action 利用 ServletContext 屬性 (或者 Spring 的helper 方法 )存取它 。 關(guān)于視圖 :Spring 的視圖方案非常的靈活 。 最后 ,操作請求的 Action 實例在一個視圖里面獲得付值和 form population。 換句話說 ,一個 WebWork Action 聯(lián)合所有這些角色到一個單 獨的對象 。 這也是和 struts圍繞請求基礎(chǔ)類 Action 和 ActionForm (每個 action 操作類型 ) 建立主要的不同之一 。 舉例來說 ,它描述了具有在應(yīng)用范圍內(nèi)的校驗錯誤的輸入機制 ,但不是系統(tǒng)錯誤 , 所以在你的 form 對象里面你不必復(fù)制你的業(yè)務(wù)對象 的 spring 屬性 ,只操作出錯的子任務(wù) ,或者適當(dāng)?shù)剞D(zhuǎn)換spring。 你可以通過命令或者 form 對象來操作任何對象 , 這不需要接口工具或者一個基礎(chǔ)類的驅(qū)動 。 這將用于一個應(yīng)用的控制 ,但是 ,如果你想包含多個層次的控制,AbstractController,AbstractCommandController, MultiActionController,SimpleFormController,AbstractWizardFormController 將幫助你完成 .應(yīng)用控制將代表那些子系統(tǒng) 。 Spring 框架通過配置操作 mappings,展示 resolution,本地化和模版集成圍繞著分派請求操作的 servletDispatcherServlet 設(shè)計的 。 這個框架的的設(shè)計思想是在你的應(yīng)用需要改良的時候,你將會做一些技術(shù)的選擇 , 例如 ,如果你需要分布式事務(wù)處理,你可能需要用 Spring 的 Jta TransactionManager 來實現(xiàn) JTA 服務(wù) 。 值得注意的是, Spring 不是和已經(jīng)存在的解決方案進行競爭 . 我們鼓勵結(jié)合標(biāo)準(zhǔn)的技術(shù),如, Servlet,JSP, JTA,JNDI,JDBCand JDO 和非常匹配的工具,如, Hibernate, Velocity, Log4J, and Caucho39。 對于 Spring 的 web 支持或者不同的地方, Spring 允許你在 web 容器里面建立一個中間層,在測試環(huán)境或者標(biāo)準(zhǔn)獨立的應(yīng)用里面來設(shè)置重用你的商務(wù)邏輯 .還有在 J2EE 環(huán)境里面,你的商務(wù)邏輯不必依靠容器提供的服務(wù),像 JTA ,EJB 的支持 。 當(dāng)然 ,Spring 有 自己的 web 支持和通??蚣苣J?細致完整 。 例如 : 一個校驗應(yīng)用將不用依靠 controllers 就可以實現(xiàn)。它有一個非常顯著的特點:在某個層面上如果你不需要Spring 的支持,你就可以不使用 Spring 的 class,只使用它的某一部分的功能。 Spring 框架 Spring 明顯區(qū)別于其他輕量級 application framework, 它將專注于 web的支持,與 struts 和 webwork 有著明顯的區(qū)別。 Struts框架沒有具體定義模型層的實現(xiàn),在實際開發(fā)中,模型層通常是和業(yè)務(wù)邏輯緊密相連的,并且要對底層數(shù)據(jù)進行操作。模型以一個或多個 Java Bean的形式存在。所有這些控制邏輯利用。動作類訪問核心商業(yè)邏輯,即
點擊復(fù)制文檔內(nèi)容
環(huán)評公示相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1