mybatis-flex.yml 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. # MyBatisFlex公共配置
  2. mybatis-flex:
  3. # 搜索指定包别名
  4. type-aliases-package: org.eco.vip.**.domain.**
  5. # 不支持多包, 如有需要可在注解配置 或 提升扫包等级:com.**.**.mapper
  6. mapper-package: org.eco.vip.**.mapper
  7. # 配置mapper的扫描,找到所有的mapper.xml映射文件
  8. mapper-locations: classpath*:mapper/**/*Mapper.xml
  9. configuration:
  10. # 自动驼峰命名规则(camel case)映射
  11. map_underscore_to_camel_case: true
  12. # MyBatis 自动映射策略
  13. auto_mapping_behavior: FULL
  14. # MyBatis 自动映射时未知列或未知属性处理策
  15. # NONE:不做处理 WARNING:打印相关警告 FAILING:抛出异常和详细信息
  16. auto_mapping_unknown_column_behavior: NONE
  17. # 更详细的日志输出 会有性能损耗 org.apache.ibatis.logging.stdout.StdOutImpl
  18. # 关闭日志记录 org.apache.ibatis.logging.nologging.NoLoggingImpl
  19. # 默认日志输出 org.apache.ibatis.logging.slf4j.Slf4jImpl
  20. #log_impl: org.apache.ibatis.logging.stdout.StdOutImpl
  21. logImpl: org.apache.ibatis.logging.nologging.NoLoggingImpl
  22. cacheEnabled: true
  23. global-config:
  24. # 逻辑删除存在0
  25. normal-value-of-logic-delete: '0'
  26. # 逻辑已删除1
  27. deleted-value-of-logic-delete: '1'
  28. # 默认的逻辑删除字段
  29. logic-delete-column: del_flag
  30. # 默认的多租户字段
  31. tenant-column: tenant_id
  32. # 默认的乐观锁字段
  33. version-column: version
  34. # 是否控制台打印 MyBatis-Flex 的 LOGO 及版本号
  35. print-banner: false
  36. # 全局的 ID 生成策略配置:雪花算法:snowFlakeId、独创的 FlexID 算法:flexId、UUIDKeyGenerator:uuid
  37. key-config:
  38. key-type: Generator
  39. value: flexId