Springboot配置application.yml

17人浏览 / 0人评论

 

mybatis:

mybatis-plus:
  mapper-locations: classpath*:/mapper/*.xml
  global-config:
    db-config:
      db-type: mysql
      #字段策略 0:"忽略判断",1:"非 NULL 判断"),2:"非空判断"
      field-strategy: NOT_EMPTY
      #驼峰下划线转换
      table-underline: true
      #逻辑删除配置(下面3个配置)
      logic-delete-value: 1
      logic-not-delete-value: 0
    banner: false
  configuration:
    map-underscore-to-camel-case: true
    #配置JdbcTypeForNull, oracle数据库必须配置
    #    jdbc-type-for-null: 'null'
    #配置控制台日志输出
    log-impl: org.apache.ibatis.logging.stdout.StdOutImpl

 

全部评论