上次因为自增,发现配置没生效, 修改后如下

 

 

# 配置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

 

posted on 2022-10-19 12:14  1161588342  阅读(31)  评论(0编辑  收藏  举报