SpringBoot2.X整合Mybatis代码示例2-使用配置文件方式

上传者: caoshangfeidie000 | 上传时间: 2021-05-18 20:06:07 | 文件大小: 150KB | 文件类型: ZIP
上一篇博文已经详细介绍了SpringBoot环境搭建过程,这一节介绍一下SpringBoot整合Mybatis,在mapper中数据库的查询操作使用的是注解的方式,本文将介绍使用XML的方式进行整合。

文件下载

资源详情

[{"title":"( 38 个子文件 150KB ) SpringBoot2.X整合Mybatis代码示例2-使用配置文件方式","children":[{"title":"SpringBootDemo-Mybatis2","children":[{"title":"pom.xml <span style='color:#111;'> 1.85KB </span>","children":null,"spread":false},{"title":"target","children":[{"title":"test-classes","children":[{"title":"com","children":[{"title":"liujia","children":[{"title":"springdemo","children":[{"title":"HelloControllerIT.class <span style='color:#111;'> 2.35KB </span>","children":null,"spread":false},{"title":"HelloControllerTest.class <span style='color:#111;'> 2.51KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true},{"title":"m2e-wtp","children":[{"title":"web-resources","children":[{"title":"META-INF","children":[{"title":"maven","children":[{"title":"com.liujia","children":[{"title":"SpringBootDemo","children":[{"title":"pom.xml <span style='color:#111;'> 1.85KB </span>","children":null,"spread":false},{"title":"pom.properties <span style='color:#111;'> 253B </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true},{"title":"MANIFEST.MF <span style='color:#111;'> 331B </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true},{"title":"classes","children":[{"title":"config","children":[{"title":"sqlMapConfig.xml <span style='color:#111;'> 241B </span>","children":null,"spread":false}],"spread":true},{"title":"application.properties <span style='color:#111;'> 820B </span>","children":null,"spread":false},{"title":"com","children":[{"title":"liujia","children":[{"title":"springdemo","children":[{"title":"mapper","children":[{"title":"UserMapper.class <span style='color:#111;'> 246B </span>","children":null,"spread":false}],"spread":true},{"title":"controller","children":[{"title":"UserController.class <span style='color:#111;'> 926B </span>","children":null,"spread":false}],"spread":true},{"title":"service","children":[{"title":"UserService.class <span style='color:#111;'> 776B </span>","children":null,"spread":false}],"spread":true},{"title":"entity","children":[{"title":"User.class <span style='color:#111;'> 1.35KB </span>","children":null,"spread":false}],"spread":false},{"title":"Application.class <span style='color:#111;'> 2.30KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true},{"title":"mapper","children":[{"title":"userMapper.xml <span style='color:#111;'> 348B </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true},{"title":".settings","children":[{"title":"org.eclipse.m2e.core.prefs <span style='color:#111;'> 90B </span>","children":null,"spread":false},{"title":"org.eclipse.wst.jsdt.ui.superType.name <span style='color:#111;'> 6B </span>","children":null,"spread":false},{"title":"org.eclipse.wst.common.project.facet.core.xml <span style='color:#111;'> 252B </span>","children":null,"spread":false},{"title":"org.eclipse.core.resources.prefs <span style='color:#111;'> 250B </span>","children":null,"spread":false},{"title":"org.eclipse.wst.common.component <span style='color:#111;'> 706B </span>","children":null,"spread":false},{"title":"org.eclipse.wst.jsdt.ui.superType.container <span style='color:#111;'> 49B </span>","children":null,"spread":false},{"title":"org.eclipse.wst.validation.prefs <span style='color:#111;'> 50B </span>","children":null,"spread":false},{"title":".jsdtscope <span style='color:#111;'> 639B </span>","children":null,"spread":false},{"title":"org.eclipse.jdt.core.prefs <span style='color:#111;'> 543B </span>","children":null,"spread":false}],"spread":true},{"title":"SpringBoot整合Mybatis-mapper使用XML.docx <span style='color:#111;'> 127.37KB </span>","children":null,"spread":false},{"title":"src","children":[{"title":"test","children":[{"title":"resources","children":null,"spread":false},{"title":"java","children":[{"title":"com","children":[{"title":"liujia","children":[{"title":"springdemo","children":[{"title":"HelloControllerIT.java <span style='color:#111;'> 1.16KB </span>","children":null,"spread":false},{"title":"HelloControllerTest.java <span style='color:#111;'> 1.18KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true}],"spread":true},{"title":"main","children":[{"title":"webapp","children":[{"title":"META-INF","children":[{"title":"MANIFEST.MF <span style='color:#111;'> 39B </span>","children":null,"spread":false}],"spread":true},{"title":"WEB-INF","children":[{"title":"web.xml <span style='color:#111;'> 283B </span>","children":null,"spread":false},{"title":"lib","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"resources","children":[{"title":"config","children":[{"title":"sqlMapConfig.xml <span style='color:#111;'> 241B </span>","children":null,"spread":false}],"spread":true},{"title":"application.properties <span style='color:#111;'> 820B </span>","children":null,"spread":false},{"title":"mapper","children":[{"title":"userMapper.xml <span style='color:#111;'> 348B </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"java","children":[{"title":"com","children":[{"title":"liujia","children":[{"title":"springdemo","children":[{"title":"Application.java <span style='color:#111;'> 1.03KB </span>","children":null,"spread":false},{"title":"mapper","children":[{"title":"UserMapper.java <span style='color:#111;'> 233B </span>","children":null,"spread":false}],"spread":false},{"title":"controller","children":[{"title":"UserController.java <span style='color:#111;'> 575B </span>","children":null,"spread":false}],"spread":false},{"title":"service","children":[{"title":"UserService.java <span style='color:#111;'> 432B </span>","children":null,"spread":false}],"spread":false},{"title":"entity","children":[{"title":"User.java <span style='color:#111;'> 706B </span>","children":null,"spread":false}],"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true}],"spread":true}],"spread":true},{"title":".project <span style='color:#111;'> 1.43KB </span>","children":null,"spread":false},{"title":".classpath <span style='color:#111;'> 1.56KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}]

评论信息

  • toome2010 :
    可以使用,就是分太贵了。
    2020-10-07
  • 哈皮coding :
    还可以哦!
    2018-11-21

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明