MyBatis3整合spring3,springMVC
System:Windows WebBrowser:IE6+、Firefox3+ JavaEE Server:tomcat5.0.2.8、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: http://blog.csdn.net/IBM_hoojo http://hoojo.cnblogs.com/ 百度文库: http://wenku.baidu.com/view/34559702a6c30c2259019e4e.html 1、 首先新建一个WebProject 命名为MyBatisForSpring,新建项目时,使用JavaEE5的lib库。然后手动添加需要的jar包,所需jar包如下: 2、 添加spring的监听及springMVC的核心Servlet,web.xml内容,内容如下: <!-- 加载Spring容器配置 --> < listener > < listener-class > org.springframework.web.context.ContextLoaderListener </ listener-class >