




版權說明:本文檔由用戶提供并上傳,收益歸屬內容提供方,若內容存在侵權,請進行舉報或認領
文檔簡介
?丁牖碼時代wwww.Qn^ 讓每一名學員高薪就業 框架配置步驟現在是比較常用的框架有ssm,既是SpringMVC、Spring及MyBatis2、確定需要集成版本mybatis-3.2.1spring-framework-3.2.0.RELEASE集成3 先和集成創建 動態工程注意 路徑Defaultoutputfolder:we-bapp-\WEE-INF\clasees添加 驅動共計個文件個相關的文件畫com.springsource.o-rg.aopalliance-I.O.O.jar畫.apache,commons.dbcp-I.Z.Z.osgi.jar[幽com.spnngsource.o-rg.amons.Fleupload-1.Z.O.jar圖rnons.io-1.4.0.Jar畫corn.5pring5curce.Q-rg.apache.cQrnmon5.lcgging-1.1.1.jar圖eom.EpringEm&ns.p&&l-1,5.3.jar圖com.springsource.o-rg.aspectj.weaver-1 R.ELEASE.jar|冬1spring-aop-3.2.0.RELEASE.jar|^Jspring-aspects-3.2.0.RELEASEJsr畫spring-beans-3.2.0.RELEAS-E.jar[芻]spring-context-3.2.0.RELEASE.]ar圖5pring-core-3.2.0.RELEA£E.jar國spring-expre-ssion-3.RELEASEjar[1]spring-jdbe-3.2.0.RELEASEJar國spring-lett-3,^,0.RELEASE.jar畫spring-tK-3.2.O.RELEASE.jar國spring-web-3.2.0.RELEASE.jar圖spring-webmvc-S.^,O.RELEASE.jar版本共個文件?丁牖碼時代?丁牖碼時代讓每一名學員高薪就業 ?r牖碼時代?r牖碼時代讓每一名學員高薪就業 [芻Iasm-3.3.1Jar[芻Icglib-2.2.Jjar圖commons-logging-1.1.1.jar國javassist-3,17,1-GAjar國Iog4j-1.2.17.jar圖mybatis-3.Z.1,jar圖mybatis-spring-1.2.0jar國slf4j-api-1,7.2jar國slf4j-log4j12-1.7-2jar包含驅動共個文件個 文件共計個文件Sjis-tl.pr畫ttandardjarjdbc.driver=com.mysql.jdbc.Driverjdbc.url=jdbc:mysql:///ssmjdbc.username=rootjdbc.password=admin1oq4i.rootLoqqer=ERRORrstdout.itsource=TRACElog4j.append?r?stdout=org.apache.lag4j.ConsaleAppenderlog4j.appender.stdout.layout=org.apache.Iog4j.PatternLayoutlog4j.ajppender?,stdout-layout.corLversionPattern—%d年口|[%c]一寫配置文件的流程:數據庫連接配置文件->DataSource->SqlSessionFactory->Mapper->Service->Controller配置文件
也可以在接口里面定義主鍵的MyBatis映射IpublicinterfaceUserMapper-[//?Select(T,selectid,name,passwordfromt_u.serT,)List<User>ge-tAll();<DQappernamespace="cn.itsource.ssm.laapper.UserMapper,r><seLect ,rgret.All,fresu.LtTy^ie=MUsei?,l>□electidfname,passwordfromt_user</select></mapper>讓每一名學員高薪就業 讓每一名學員高薪就業 ?丁牖翦時代ITSPVFGft.?ServicepublicclassUserServicelmplimplementsIUserService{SAutowiredprivateUserMapperuserMapper;&OverridepublicList<User>getAll(){returnuserMapper.getAll();配置文件?丁犒稻時代?Controller&Requ.estMapplng(T,/user1')publicclassUserController{@AutowiredIUserServiceuserService;SReqiiestMapping(/1istT,)publicStringlist(Modelmodel){List<User>List=userService.getAll();System.out.println{r,size:T,+List.size()]model.addAttribute{"usersT,rList);return.T,nserT,;與電@pagelanguaqe=BJava*白口0工合口工工土安旨二n工 zml;oh&zser=£7TF-3npagsE^ncadi:ng=11GHJF-君T>QpEefiM=n^auri=*htt£ij//Jdvarsun.《七電1ag二qpxe£ix=上費ruxi=wJ2Ccp;//h'h'h'.sprlngrraiaet/ozJt.urg/cags/Xc-xmW1><]DOCTYPHhtnLJlDUELZCr,-//w3c//DTDHTtLL4.凸士Tran=itiona1//EW?nhttp://ww,w3.rg/TR/htmld/1oc-sa.dtdR><hea(l><mct□h±±p-Gi'q*uiv="Cssjitant-Type*cant-ant=n,toxt/htmJ-charrot=C!TF—":=■<tit&>.§araiaffiL</tiT一■?></headi><bDidy><1--'ia.Ta'hrejDjstl:<csforEach--><r山二■&X>OE<lez=n2"><tr>?<th>播號</th><7tC<c:roiEacHiLems=r5usersJivai=nl:
溫馨提示
- 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯系上傳者。文件的所有權益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網頁內容里面會有圖紙預覽,若沒有圖紙預覽就沒有圖紙。
- 4. 未經權益所有人同意不得將文件中的內容挪作商業或盈利用途。
- 5. 人人文庫網僅提供信息存儲空間,僅對用戶上傳內容的表現方式做保護處理,對用戶上傳分享的文檔內容本身不做任何修改或編輯,并不能對任何下載內容負責。
- 6. 下載文件中如有侵權或不適當內容,請與我們聯系,我們立即糾正。
- 7. 本站不保證下載資源的準確性、安全性和完整性, 同時也不承擔用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- 湖北工程職業學院《土木工程施工技術與組織課程設計》2023-2024學年第二學期期末試卷
- 山東輕工職業學院《電影攝影技巧》2023-2024學年第二學期期末試卷
- 烏蘭察布職業學院《數理統計理論與方法國際2》2023-2024學年第二學期期末試卷
- 食堂食品原材料采購合同書
- 中對照裝飾施工合同
- 尾礦庫工程承包合同
- 客廳吊燈燈具買賣合同
- 衣柜購銷合同
- 并購居間服務合同
- 智慧廁所租賃合同范本
- 南開一模試題及答案物理
- 茶葉生產關鍵影響因素與高產栽培技術研究
- 施工質量獎懲考核實施細則
- 人教版五年級音樂下冊(簡譜)第二單元《阿嘍嘍》教學設計
- 2025年入團考試練習試題(100題)附答案
- JGJ/T235-2011建筑外墻防水工程技術規程
- (正式版)HG∕T 21633-2024 玻璃鋼管和管件選用規定
- 浙江省寧波市鄞州區2023 學年第二學期八年級科學期中考試試卷
- 中華民族共同體概論課件專家版2第二講 樹立正確的中華民族歷史觀
- 國家開放大學《人文英語3》章節測試參考答案
- 幼兒繪本故事之十二生肖
評論
0/150
提交評論