2021
01-12
01-12
springdata jpa单表操作crud的实例代码详解
1.项目搭建使用boot整合,导入springdatajap,mysql驱动,lombok,web。1.1配置#bootaddjpa,oh~crudinsingletableserver:port:8888spring:#datasourcedatasource:username:rootpassword:123456driver-class-name:com.mysql.cj.jdbc.Driverurl:jdbc:mysql://localhost:3306/mydatabase?useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai#jpaconfigjpa:hibernate:#配置创...
继续阅读 >