mybatisplus yaml 基本配置
spring:
datasource:
url: jdbc:mysql://localhost:3306/mp?serverTimezone=GMT%2B8&characterEncoding=utf-8&useSSL=false
driver-class-name: com.mysql.cj.jdbc.Driver
username: root
password: 123456
mybatis-plus:
configuration:
#日志
log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
#全局配置
global-config:
db-config:
table-prefix: t_
id-type: auto
# 配置类型别名对应的包名
type-aliases-package: com.cad.mybatisplus.bean
# enum扫描包
type-enums-package: com.cad.mybatisplus.enums