
spring:
  application:
    name:                                   datasyn
  kafka:
    producer:
      retries:                              0
      batch-size:                           16384
      buffer-memory:                        33554432
      key-serializer:                       org.apache.kafka.common.serialization.StringSerializer
      value-serializer:                     org.apache.kafka.common.serialization.StringSerializer
      properties:
        linger.ms:                          1

    consumer:
      enable-auto-commit:                   false
      auto-commit-interval:                 100ms
      key-deserializer:                     org.apache.kafka.common.serialization.StringDeserializer
      value-deserializer:                   org.apache.kafka.common.serialization.StringDeserializer
      properties:
        session.timeout.ms:                 15000


  mvc:
    favicon:
      enabled:                          true
  jmx:
    default-domain:                     datasyn


  datasource:
    name:                               datasyn
    type:                               com.alibaba.druid.pool.DruidDataSource
    #测试服务
    driver-class-name:                  org.postgresql.Driver


  jackson:
    date-format:                        yyyy-MM-dd HH:mm:ss
    time-zone:                          Asia/Shanghai
    default-property-inclusion:         non_null
    # 首字母大写
#    property-naming-strategy:           com.fasterxml.jackson.databind.PropertyNamingStrategy.PascalCaseStrategy
    # 以下划线分隔全小写的单词
    property-naming-strategy:           com.fasterxml.jackson.databind.PropertyNamingStrategy.LowerCaseWithUnderscoresStrategy
    mapper:
          # 属性按字母顺序输出
          sort_properties_alphabetically:   true

# spring-doc 配置
springdoc:
  # springdoc 扫描的包，多个包之间使用逗号分隔
  packagesToScan:                           com.persagy.server
  swagger-ui:
    # API 组排序方式：asc 升序，desc 降序
    groups-order:                           asc
    # 标识排序方式：alpha 按字母升序排列
    tags-sorter:                            alpha
    # API 接口排序方式：alpha 按字母升序排列，method 按方法的定义顺序。
    operations-sorter:                      alpha

mybatis:
  typeAliasesPackage:                   cn.sagacloud.server.datacenter.entities



