MyBatis3整合Spring3SpringMVCdata..docVIP

  • 5
  • 0
  • 约2.96万字
  • 约 28页
  • 2016-12-31 发布于重庆
  • 举报
MyBatis3整合Spring3SpringMVCdata.

MyBatis整合Spring 开发环境: System:Windows WebBrowser:IE6+、Firefox3+ JavaEE Server:tomcat、tomcat6 IDE:eclipse、MyEclipse 8 Database:MySQL 开发依赖库: JavaEE5、Spring 3.0.5、Mybatis 3.0.4、myBatis-spring-1.0、junit4.8.2 Email:hoojo_@126.com Blog:/IBM_hoojo / 首先新建一个WebProject 命名为MyBatisForSpring,新建项目时,使用JavaEE5的lib库。然后手动添加需要的jar包,所需jar包如下: 添加spring的监听及springMVC的核心Servlet,web.xml内容,内容如下: !-- 加载Spring容器配置 -- listener listener-classorg.springframework.web.context.ContextLoaderListener/listener-class /listener !-- 设置Spring容器加载配置文件路径 -- context-param param-namecontextConfigLocation/param-name param-valu

文档评论(0)

1亿VIP精品文档

相关文档