Add Spring Capablities Add Spring Capabilitie Add MyEclipse Spring and User libraries to project elert the to add to the huildnath shok☑MyEclipse Uibraries☐User Libraries Spring 3.0 AOP Libraries-<MyEclipse-Library> Spring LbrarieMyEclpse-Library MyEcipse-Library> Spring 3.0 Testing Sup ort Lib iew and odit braries AR Library installaon .hdd.c Tag Library Installation Tag Library Folden ebRoot/WEB-INF Browse.. Back etnih☐Cancel 点击Next,各项选定如下图: Add Spring Copabilities g bean config Ensble AOP Bulder chat dotusing Amyeefomaneengi Bean configuration type:o New Existing Browse <Bock☐Net 5nish☐Cancel
点击Next,各项选定如下图:
点击Finish,ssh20130507工程的目录中添加了Spring相关内容。如下图: ,355h20130507 struts.. Struts 2 Core Libraries Struts 2 Spring Libraries 1n93 0Coretbraref Spring 3.0 Persistence Core Libraries Spring 3.0 Persistence JDBC Libraries Spring 3.0Testing Support Libraries ·META-N ·ewEB-iNF ng-orm.l 了indexj对.sp 在web.xml中增加Spring3?.0整合Struts2.l的相关配置。如下: <listener ner-cassorg.springframework.web.context./istener-class </stene e>contextConfigLocation</param-name context.xml/param-value 添加Hibernate支持 在ssh20130507工程上面右击,在弹出的菜单中选择MyEclipse->Add Hibernate Capabilities.,添加Hibernatef的支持。如下图: A Add Re Struts 2 Cloze Unrelsted Proiest Assign Working Sets Add JSTL Librar Run as Add Hibernate Capabilities. ug As Run XDoclet Spri Exdude From VaSdation from Local Hist Test_SSH e A V
点击Finish,ssh20130507工程的目录中添加了Spring相关内容。如下图: 在web.xml中增加Spring3.0整合Struts2.1的相关配置。如下: <listener> <listener‐class>org.springframework.web.context.ContextLoaderListener</listener‐class> </listener> <context‐param> <param‐name>contextConfigLocation</param‐name> <param‐value>classpath:applicationContext.xml</param‐value> </context‐param> 五. 添加 Hibernate 支持: 在ssh20130507工程上面右击,在弹出的菜单中选择MyEclipse -> Add Hibernate Capabilities…,添加Hibernate的支持。如下图: