1、整合Mybatis-Plus
spring:
datasource:
username: root
password: root
url: jdbc:mysql://192.168.150.130:3306/gulimall_pms?useUnicode=true&characterEncoding=UTF-8&useSSL=false&serverTimezone=Asia/Shanghai
driver-class-name: com.mysql.jdbc.Driver
mybatis-plus:
### mybatis 的 sqlMapper 的路径
mapper-locations: classpath:/mapper/**/*.xml
global-config:
db-config:
##主键自增
id-type: auto
插入成功,表示整合Mybatis-Plus成功
修改
查询