摘要:
3.1 通用 CRUD 1) 提出问题: 假设我们已存在一张 tbl_employee 表,且已有对应的实体类 Employee,实现 tbl_employee 表的 CRUD 操作我们需要做什么呢? 2) 实现方式: 基于 Mybatis 需要编写 EmployeeMapper 接口,并手动编写 阅读全文
posted @ 2020-08-14 22:52
青岑
阅读(573)
评论(0)
推荐(0)
摘要:
1)加入maven 依赖 <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-devtools</artifactId> <scope>runtime</scope> <optional>t 阅读全文
posted @ 2020-08-14 22:27
青岑
阅读(2596)
评论(0)
推荐(1)
摘要:
进入spring官网SpringCloud项目下:https://spring.io/projects/spring-cloud Boot和Cloud 依赖关系的详细介绍: 在浏览器上输入 https://start.spring.io/actuator/info 在线格式化json串,这里就是bo 阅读全文
posted @ 2020-08-14 22:19
青岑
阅读(1392)
评论(0)
推荐(0)
摘要:
项目结构如下 1)引入依赖 特别说明: Mybatis 及 Mybatis-Spring 依赖请勿加入项目配置,以免引起版本冲突!!! Mybatis-Plus 会自动帮你维护! 还有一点:我的mysql是8.0的,如果用 <artifactId>mysql-connector-java</arti 阅读全文
posted @ 2020-08-14 07:18
青岑
阅读(492)
评论(0)
推荐(0)

浙公网安备 33010602011771号