将Mybatis交给spring管理后,只需一个接口对应相应的Mapper.xml文件即可处理相应的数据库操作.
此例中,StudentDao为定义增删改查方法的接口,对应的StudentMapper.xml文件中有相应的增删改查的操作项,接口中的方法名与xml文件中的相应操作的id属性值必须一致
-------------------------------------
此例只是Springmvc整合Mybatis的基本使用,可查相应资料或从宁鹏出获取资料,进行进阶学习.
没有合适的资源?快使用搜索试试~ 我知道了~
基于springMVC+spring+mybatis+mysql框架的增删改查demo
共56个文件
jar:24个
xml:8个
class:4个
4星 · 超过85%的资源 需积分: 20 152 下载量 162 浏览量
2016-07-07
15:37:43
上传
评论 2
收藏 9.66MB ZIP 举报
温馨提示
本代码基于SpringMVC+spring+mybatis+mysql实现增删改查的基本操作
资源推荐
资源详情
资源评论
收起资源包目录
quoting.zip (56个子文件)
quoting
.project 2KB
.settings
.jsdtscope 500B
org.eclipse.core.resources.prefs 105B
org.eclipse.wst.common.component 536B
org.eclipse.jdt.core.prefs 364B
org.eclipse.wst.common.project.facet.core.xml 252B
org.eclipse.wst.jsdt.ui.superType.container 49B
org.eclipse.wst.jsdt.ui.superType.name 6B
.mymetadata 294B
WebRoot
WEB-INF
web.xml 1KB
lib
c3p0-0.9.2.1.jar 414KB
standard-1.1.2.jar 384KB
aopalliance.jar 4KB
spring-core-4.0.0.RELEASE.jar 933KB
jstl-1.2.jar 405KB
spring-aspects-4.0.0.RELEASE.jar 50KB
spring-beans-4.0.0.RELEASE.jar 654KB
com.springsource.net.sf.cglib-2.2.0.jar 319KB
spring-tx-4.0.0.RELEASE.jar 242KB
spring-aop-4.0.0.RELEASE.jar 343KB
commons-logging-1.2.jar 60KB
com.springsource.org.aopalliance-1.0.0.jar 5KB
mchange-commons-java-0.2.3.4.jar 568KB
spring-context-4.0.0.RELEASE.jar 928KB
spring-orm-4.0.0.RELEASE.jar 309KB
spring-jdbc-4.0.0.RELEASE.jar 410KB
log4j-1.2.16.jar 470KB
mybatis-spring-1.2.1.jar 48KB
spring-web-4.0.0.RELEASE.jar 646KB
mysql-connector-java-5.1.7-bin.jar 693KB
com.springsource.org.aspectj.weaver-1.6.8.RELEASE.jar 1.57MB
mybatis-3.1.1.jar 636KB
spring-expression-4.0.0.RELEASE.jar 202KB
spring-webmvc-4.0.0.RELEASE.jar 645KB
classes
springmvc.xml 1KB
com
xhpower
ssm
demo
services
StudentService.class 1KB
entities
Student.class 1KB
daos
StudentMapper.xml 2KB
readme.txt 482B
StudentDao.class 554B
controllers
StudentHandler.class 3KB
spring-config.xml 3KB
index.jsp 457B
META-INF
MANIFEST.MF 36B
list.jsp 957B
error.jsp 392B
input.jsp 804B
.myeclipse
src
com
xhpower
ssm
demo
services
StudentService.java 896B
entities
Student.java 824B
daos
StudentMapper.xml 2KB
StudentDao.java 467B
readme.txt 482B
controllers
StudentHandler.java 2KB
config
springmvc.xml 1KB
spring-config.xml 3KB
.classpath 574B
共 56 条
- 1
资源评论
- pengfei19492017-07-06对初学者有帮助 谢谢
- overmy2017-11-02没有数据库文件
- buptfrh2017-03-02下载了 正在看 谢谢分享
贾欣晓
- 粉丝: 136
- 资源: 8
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功