server:
  port: 5010

spring:
  datasource:
    username: monisuo
    password: JPJ8wYicSGC8aRnk
    url: jdbc:mysql://8.155.172.147:3306/monisuo?useUnicode=true&characterEncoding=utf8&serverTimezone=GMT%2B8
    driver-class-name: com.mysql.cj.jdbc.Driver
    hikari:
      minimum-idle: 5
      maximum-pool-size: 20
      idle-timeout: 30000
      pool-name: MonisuoHikariCP
      max-lifetime: 1800000
      connection-timeout: 30000
      connection-test-query: SELECT 1
  jackson:
    serialization:
      write-dates-as-timestamps: false
      fail-on-empty-beans: false
    deserialization:
      fail-on-unknown-properties: false
    default-property-inclusion: non_null

#mybatis-plus
mybatis-plus:
  mapper-locations: classpath*:com/it/rattan/monisuo/mapper/*.xml
  global-config:
    db-config:
      # 主键类型 AUTO-自增
      id-type: auto
      # 字段策略 IGNORED-忽略判断 NOT_NULL-非null判断 NOT_EMPTY-非空判断
      update-strategy: not_null
      insert-strategy: not_null
    # 关闭 MP3.0 的 banner
    banner: false
  configuration:
    # 开启驼峰命名转换
    map-underscore-to-camel-case: true
    # 打印 SQL 日志（开发环境）
    log-impl: org.apache.ibatis.logging.stdout.StdOutImpl

# 日志配置
logging:
  level:
    root: INFO
    com.it.rattan.monisuo: DEBUG
    com.it.rattan.monisuo.mapper: DEBUG
    org.springframework.jdbc: DEBUG
    org.springframework.transaction: DEBUG
    org.mybatis: DEBUG
  pattern:
    console: "%d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{50} - %msg%n"

bean-searcher:
  packages: com.it.rattan.monisuo
  params:
    pagination:
      start: 1
    ignore-case-key: