SpringBoot集成Mybatis
2023-09-11 14:15:29 时间
1.Myabtis
<parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent</artifactId> <version>2.0.0.RELEASE</version> </parent> <dependencies> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-web</artifactId> </dependency> <dependency> <groupId>org.mybatis.spring.boot</groupId> <artifactId>mybatis-spring-boot-starter</artifactId> <version>1.1.1</version> </dependency> <!-- mysql 依赖 --> <dependency> <groupId>mysql</groupId> <artifactId>mysql-connector-java</artifactId> </dependency> </dependencies> <build> <plugins> <plugin> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-maven-plugin</artifactId> </plugin> </plugins> </build>
2.配置文件
spring.datasource.url=jdbc:mysql://localhost:3306/test20 spring.datasource.username=root spring.datasource.password=admin spring.datasource.driver-class-name=com.mysql.jdbc.Driver mybatis.type-aliases-package=com.majiaxueyuan.mapper mybatis.mapper-locations=classpath:mapping/*.xml
.
相关文章
- springboot日志管理+集成log4j
- springboot集成mybatis
- SSM和SpringBoot的区别
- Atitit springboot mybatis spring 集成 Springboot1.4 mybatis3.4.6 /springbootMybatis 目录 1.1. 设置map
- 【SpringBoot笔记26】SpringBoot框架集成ElasticSearch数据库
- 【SpringBoot笔记16】SpringBoot集成Quartz实现定时任务功能
- 【SpringBoot笔记11】SpringBoot框架集成Swagger2文档
- 【SpringBoot笔记27】SpringBoot集成ES数据库之操作index索引(创建、删除、获取)
- 【SpringBoot笔记25】SpringBoot框架集成PageHelper分页插件以及自定义分页工具类
- 补习系列(10)-springboot 之配置读取
- Springboot集成百度地图实现定位打卡功能
- SpringBoot——实现WebService接口服务端以及客户端开发
- Springboot中几个层的功能总结
- 《Kotlin极简教程》第七章 Kotlin 集成 Springboot开发WebApp
- 《Kotin 极简教程》第11章 使用Kotlin 集成 SpringBoot开发Web服务端
- SpringBoot如何自定义启动的Banner 在线生成SpringBoot启动的Banner工具 如何使用在线生成工具生成的SpringBoot的Banner
- SpringBoot学习笔记(四)——Spring Boot集成MyBatis起步
- Springboot集成定时调度
- SpringBoot整合SpringMVC、持久层技术MyBatis、连接mysql数据库技术
- SpringBoot的事件监听
- springboot 后台运行
- SpringBoot集成Redis实现分布式会话
- SpringBoot聚合工程集成MyBatis报错:Invalid bound statement (not found): com.xxx.xxx.test.TestService.getAll
- Springboot怎么实现restfult风格Api接口
- Java图书目录管理系统CRUD展示(springboot+vue+mybatis-plus)
- Spring、SpringBoot常见面试题与答案
- Springboot集成支付宝沙箱支付(完整版)
- springboot集成webService开发详解
- ElasticSearch_08_SpringBoot集成ES