maven2+struts2+spring3 使用maven一步步搭建ssi ssh框架.doc_第1页
maven2+struts2+spring3 使用maven一步步搭建ssi ssh框架.doc_第2页
maven2+struts2+spring3 使用maven一步步搭建ssi ssh框架.doc_第3页
maven2+struts2+spring3 使用maven一步步搭建ssi ssh框架.doc_第4页
maven2+struts2+spring3 使用maven一步步搭建ssi ssh框架.doc_第5页
已阅读5页,还剩8页未读 继续免费阅读

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

Maven + struts+ spring版本号:maven 2 Struts Spring 3.0.0.RELEASE接着上个文档配置maven2 + struts2(见/view/19b8aa41336c1eb91a375dcb.html?st=1)来将spring 加进去。项目创建路径图Web.xml SSH_proto encodingFilter org.springframework.web.filter.CharacterEncodingFilter encoding utf-8 contextConfigLocationclasspath*:applicationContext-services.xmlorg.springframework.web.context.ContextLoaderListener CharacterEncodingFilter org.springframework.web.filter.CharacterEncodingFilter encoding UTF-8 forceEncoding true struts-cleanup org.apache.struts2.dispatcher.ActionContextCleanUp struts2org.apache.struts2.dispatcher.FilterDispatcherstruts2/* applicationContext-services.xml front-context.xml Pom.xml 4.0.0 my.web cat war 1.0 web marsRyan开发 测试993985246+8 marswhjzuiai开发76513716+8 !-!-!-com.springsource.repository.bundles.release-!-EBR Spring Release Repository-!-/maven/bundles/release-!-!-!-com.springsource.repository.bundles.external-!-EBR External Release Repository-!-/maven/bundles/external-!-!- 3.0.0.RELEASE1.6.4 junit junit 3.8.1 test javax.servletservlet-api2.4provided javax.servlet jsp-api 2.0 provided org.slf4j slf4j-api $org.slf4j.version org.slf4j slf4j-log4j12 $org.slf4j.version org.slf4j jul-to-slf4j $org.slf4j.version org.apache.struts struts2-core $org.strtus.version org.apache.struts struts2-tiles-plugin $org.strtus.version org.apache.struts struts2-spring-plugin $org.strtus.version asmasm-commons2.2.3 asm asm 2.2.3 commons-io commons-io 20030203.000550 org.springframework org.springframework.core $spring.version org.springframework org.springframework.web $spring.version org.springframework org.springframework.transaction $spring.version org.springframework org.springframework.orm $spring.version org.springframework org.springframework.jdbc $spring.version org.springframework org.springframework.web.servlet $spring.version org.springframework org.springframework.context $spring.version org.springframework org.springframework.aop $spring.version org.springframework org.springframework.expression $spring.version org.springframework org.springframework.test $spring.version net.sourceforge.cglib .sf.cglib 2.1.3 org.apache.tiles tiles-jsp 2.0.4 javax.servlet jstl 1.1.0 org.apache.maven.pluginsmaven-eclipse-plugintruetrue2.0org.codehaus.mojotomcat-maven-pluginmaven-javadoc-plugin/Java_Docs/jdk6/html/zh_CN/apitruemaven-site-pluginzh_CNUTF-8org.mortbay.jettymaven-jetty-plugin6.1.6maven-compiler-plugin1.61.6UTF-8org.codehaus.mojosurefire-report-maven-pluginmaven-javadoc-plugin/Java_Docs/jdk6/html/zh_CN/apitrueUTF-8UTF-8UTF-8Struts.xml WEB-INF/login.jsp WEB-INF/login.jspLogback.xml INFO ACCEPT DENY %-4relative %thread %-5level %logger30 - %msg%n UserDaopackage com.web.www.dao.impl;import com.web.www.dao.IUserDao;/* * Created by IntelliJ IDEA. * User: ryan * Date: 11-11-19 * Time: 下午10:51 */public class UserDao implements IUserDao Override public boolean save() return false; /To change body of implemented methods use File | Settings | File Templates. Override public boolean update() System.out.print(-update-); return false; /To change body of implemented methods use File | Settings | File Templates. Override public boolean delete() return false; /To change body of implemented methods use File | Settings | File Templates. Override public boolean get() return false; /To change body of implemented methods use File | Settings | File Templates. UserAction package com.web.www.view;import com.opensymphony.xwork2.ActionSupport;import com.web.www.dao.IUserDao;import com.web.www.dao.impl.UserDao;import org.springframework.context.ApplicationContext;import org.springframework.context.support.ClassPathXmlApplicationContext;/* * Created by IntelliJ IDEA. * User: ryan * Date: 11-11-19 * Time: 下午10:53 */public class UserAction extends ActionSupport private IUserDao userDao; public String execute()/ ApplicationContext context = new ClassPathXmlApplicationContext(/applicationContext-services.xml);/UserDao userDao = (UserDao) context.getBea

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论