MP常见配置

凌得涂

关注

阅读 31

2024-09-05


mybatis-plus:
  type-aliases-package: com.wml.learn.domain.po  # 别名扫描包
  mapper-locations: classpath:mapping/*Mapper.xml # Mapper.xml文件地址默认值
  configuration:
    map-underscore-to-camel-case: true  # 是否开始下划线和驼峰的映射
    cache-enabled: false # 是否开始二级缓存
  global-config:
    db-config:
      id-type: assign_id # id为雪花算法生成
      update-strategy: not_null # 更新策略:只更新非空字段


精彩评论(0)

0 0 举报