# Tomcat
server:
  port: 5005

# Spring
spring:
  application:
    # 应用名称
    name: custom-query
  profiles:
    # 环境配置
    active: dev
  cloud:
    nacos:
      discovery:
        # 服务注册地址
        server-addr: 162.14.111.170:8848
        username: nacos
        password: nacos
        namespace: ${spring.profiles.active}
      config:
        # 配置中心地址
        server-addr: ${spring.cloud.nacos.discovery.server-addr}
        file-extension: yaml
        namespace: ${spring.profiles.active}
        shared-configs:
          - data-id: application-${spring.profiles.active}.yaml
            refresh: true
#    alibaba:
#      seata:
#        application-id: default_tx_group

encrypt:
  secretKey: 1234567890abcdef

dubbo:
  application:
    name: dubbo-${spring.application.name}
  protocol:
    name: dubbo
    port: -1
#    serialization: fastjson2
  registry:
    address: nacos://${spring.cloud.nacos.discovery.server-addr}
    username: ${spring.cloud.nacos.discovery.username}
    password: ${spring.cloud.nacos.discovery.password}
    parameters:
      namespace: dubbo-${spring.profiles.active}

seata:
  application-id: ${spring.application.name}
  tx-service-group: default_tx_group
  service:
    grouplist:
      seata-server: 10.7.127.185:8091
  registry:
    type: nacos
    nacos:
      server-addr: ${spring.cloud.nacos.discovery.server-addr}
      username: ${spring.cloud.nacos.discovery.username}
      password: ${spring.cloud.nacos.discovery.password}
      group: SEATA_GROUP
      namespace: dev
  config:
    type: nacos
    nacos:
      server-addr: ${spring.cloud.nacos.discovery.server-addr}
      username: ${spring.cloud.nacos.discovery.username}
      password: ${spring.cloud.nacos.discovery.password}
      group: SEATA_GROUP
      namespace: seata-config
  client:
    undo:
      log-serialization: kryo
      data-validation: true
    rm:
      report-retry-count: 5
      table-meta-check-enable: false
