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

正文內(nèi)容

保險(xiǎn)公司大客戶管理系統(tǒng)架構(gòu)設(shè)計(jì)說(shuō)明書(shū)(編輯修改稿)

2025-02-27 02:46 本頁(yè)面
 

【文章內(nèi)容簡(jiǎn)介】 1. 2. 3. 4. 生成 Web工程。 選中工程,點(diǎn)擊 右鍵,彈出菜單,選擇 MyEclipseAdd Spring Capabilities 根據(jù)向?qū)нx定 Spring 的版本。 生成 Spring 的缺省配置文件,該文件缺省生成在 src目錄下,也 可以修改成其它目錄,如目錄 WEBINF。 Spring容器監(jiān)聽(tīng)器 在 web應(yīng)用程序中, Spring容器不會(huì)自動(dòng)生成,而必須由 web服務(wù)器通過(guò) web監(jiān)聽(tīng)器來(lái)生成。該監(jiān)聽(tīng)器讀取 Spring配置文件,然后生成 Spring容器。監(jiān)聽(tīng)器的配置如下: listener listenerclass/listenerclass /listener 因?yàn)楸O(jiān)聽(tīng)器是通過(guò) WebApplicationContext 去 讀 取 配 置 文 件,因此配置文件應(yīng)該存放在 WEBINF目錄下。如果配置文件存放在其它目錄,例如存放在 src目錄下,那么應(yīng)該在 文件中指定配置文件的存放路徑。 contextparam paramnamecontextConfigLocation/paramname paramvalueclasspath*:/paramvalue /contextparam Spring配置文件 在實(shí)際應(yīng)用中為了實(shí)現(xiàn)分層管理,我們可以將 Spring 的配置文件切分為多個(gè)(將 6 保險(xiǎn)公司大客戶管理系統(tǒng)架構(gòu)設(shè)計(jì)說(shuō)明書(shū) 但是,生成上面的多個(gè)配置文件后, Spring不再能夠識(shí)別它的配置文件,這是應(yīng)該在 中增加以下元素以告訴監(jiān)聽(tīng)器查找并識(shí)別 Spring的配置文件: contextparam paramnamecontextConfigLocation/paramname paramvalue/WEBINF/applicationContext*.xml/paramvalue /contextparam 4配置 Struts Struts 框架 選中工程,點(diǎn)擊右鍵,彈出菜單,選擇 MyEclipseAdd Struts Capabilities。 Spring容器生成 Action bean Struts action對(duì)象是由 Struts 框架生成的,現(xiàn)在我們將 action交由 Spring容器來(lái)生成。 1. 在 文件中,增加以下元素: controller setproperty value= property=processorClass/ /controller 2. 通過(guò) struts 向?qū)?action后,在 文件中會(huì)自動(dòng)添加以下元素: actionmappings action path=/student type= / /actionmappings 3. 在 中配置相應(yīng)的 Action bean: bean name =/student class=/ 每當(dāng)生成一個(gè) action后,都必須在 文件中增加一個(gè) bean的配置。 Action Path 為避免在 struts 1的配置文件中在 action中指定的 path帶有目錄名,應(yīng)該不直接去訪問(wèn)頁(yè)面,而是通過(guò) action進(jìn)行中轉(zhuǎn)。 7 保險(xiǎn)公司大客戶管理系統(tǒng)架構(gòu)設(shè)計(jì)說(shuō)明書(shū) Action中方法的互相調(diào)用問(wèn)題 當(dāng)在一個(gè) action的方法中要調(diào)用另一個(gè)方法時(shí),一般采用跳轉(zhuǎn)或者重定向的方式調(diào)用。而不要直接在代碼中調(diào)用。如果一個(gè) 方法中通過(guò)調(diào)用 service 完成了對(duì)象的變更(增刪改),那么當(dāng)要調(diào)用另一個(gè)方法顯示最新的對(duì)象時(shí),必須使用redirect而不是 forward,否則前一個(gè)方法的事務(wù)還沒(méi)有提交,后一個(gè)方法查詢的僅僅是未提交的對(duì)象,同時(shí)關(guān)聯(lián)的對(duì)象也不會(huì)查上來(lái)。 5 Action設(shè)計(jì) 以 struts 為中心,所有的跳轉(zhuǎn)必須經(jīng)過(guò) Struts dispatcher,頁(yè)面請(qǐng)求發(fā)送給Action, Action 處理后返回到其它頁(yè)面或資源。不允許從一個(gè)頁(yè)面直接跳轉(zhuǎn)到另一個(gè)頁(yè)面。 項(xiàng)目中使用具有分發(fā)功能的 Action。每個(gè) Action類具有多個(gè)方法,每個(gè)方法完成相應(yīng)的 功能。每個(gè) Action類對(duì)應(yīng)一個(gè) struts 的 action。例如: class IndexAction { public String add() throws Exception { return “add”。 } public String del() throws Exception { return “del”。 } } 采用 Annotation來(lái)聲明 Struts 的 action。 @Action(value=index, results={@Result(name=add,type=dispatcher,location=), @Result(name=del,type=dispatcher,location=/p)}, exceptionMappings={@ExceptionMapping(exception= ,result=fail)}) class IndexAction { public String add() throws Exception { return “add”。 } public String del() throws Exception { 8 保險(xiǎn)公司大客戶管理系統(tǒng)架構(gòu)設(shè)計(jì)說(shuō)明書(shū) return “del”。 } } 當(dāng)要調(diào)用 index中 add方法時(shí), URL為: index!add 當(dāng)要調(diào)用 index中 del 方法時(shí), URL為: index!del 頁(yè)面通過(guò) OGNL在頁(yè)面和 Action之間傳遞數(shù)據(jù)。 以 Action結(jié)尾的名詞或動(dòng)名詞詞組。例如: InsuranceApplicationAction ClaimAction ClaimSettlementAction 框架中的所有頁(yè)面必須通過(guò)向 Action發(fā)送請(qǐng)求,然后 Action返回相應(yīng)的頁(yè)面。 例如: frameset rows=8%,* border=0 frame src=index!title scrolling=no noresize=noresize frameset cols=20%,* frame src=index!menu noresize=noresize frame src=index!main name=showFrame noresize=noresize /frameset /frameset 9 保險(xiǎn)公司大客戶管理系統(tǒng)架構(gòu)設(shè)計(jì)說(shuō)明書(shū) InsuranceApplicationAction + + + + + + + + + + + + + + + + + + + + addEmpAppInput ()addEmpApp ()addChildAppInput ()addChildApp ()addSpouseAppInput ()addSpouseApp ()findInsuredApp ()findDetailedEmpApp ()findDetailedChildApp ()findDetailedSpouseApp ()cancelEmpApp ()cancelDependentApp ()delEmpApp ()delDependentApp ()modEmpAppInput ()modEmpApp ()modChildAppInput ()modChildApp ()modSpouseAppInput ()modSpouseApp
點(diǎn)擊復(fù)制文檔內(nèi)容
環(huán)評(píng)公示相關(guān)推薦
文庫(kù)吧 www.dybbs8.com
備案圖片鄂ICP備17016276號(hào)-1