上次因为自增,发现配置没生效, 修改后如下
# 配置mybatis-plus, 参考:com.baomidou.mybatisplus.autoconfigure.MybatisPlusProperties mybatis-plus: # 扫描mapper, 默认:classpath*:/mapper/**/*.xml mapper-locations: classpath:mapper/**/*.xml # 搜索包名 type-aliases-package: com.demo.order global-config: #数据库相关配置 db-config: #主键类型 默认:ASSIGN_ID 雪花算法, AUTO: 数据库ID自增, 参考:com.baomidou.mybatisplus.annotation.IdType id-type: AUTO banner: false #原生配置 configuration: cache-enabled: false call-setters-on-nulls: true
标签:mapper,false,com,配置,baomidou,config,baodoumi,yml From: https://www.cnblogs.com/eason-d/p/16805836.html