application.yml 2.62 KB
spring:
  application:
    name: fw-dalaran
  attachment:
    invoker-system: dalaran
  cache:
    locker:
      key-prefix: 'dalaran:locker'
    custom:
      global-prefix: 'dalaran'

  cloud:
    nacos:
      discovery:
        server-addr: 172.26.154.169:8848
  datasource:
    driver-class-name: com.mysql.jdbc.Driver
    hikari:
      connection-test-query: SELECT 1 FROM DUAL
#    url: jdbc:mysql://192.168.0.8:3306/fw_dalaran?characterEncoding=UTF-8&useSSL=false
#    username: root
#    password: mysql@pwd123
    url: jdbc:mysql://172.26.154.169:3302/fw_dalaran?characterEncoding=UTF-8&useSSL=false
    username: test
    password: mysql@pwd123
  jackson:
    default-property-inclusion: non_null
    serialization:
      write-dates-as-timestamps: true
    time-zone: GMT+8
  main:
    allow-bean-definition-overriding: true
  profiles:
    active: cache,${activatedProfiles}
  redis:
    host: 172.26.154.169
    port: 6378
    lettuce:
      pool:
        max-active: 20
        max-wait: 1S
        min-idle: 3
    database: 4
  rest-result-processor:
    enabled: false
  servlet:
    multipart:
      enabled: true
      max-file-size: 50MB
      max-request-size: 100MB

auth:
  aes:
    key: bN7DVjFMJPcoWDcR
  ignore:
    start-with: /user/*,/role/*,/user/login

hystrix:
  command:
    default:
      circuitBreaker:
        forceClosed: true
        sleepWindowInMilliseconds: 100000
      execution:
        isolation:
          thread:
            timeoutInMilliseconds: 3000
  shareSecurityContext: true
info:
  build:
    artifact: ${project.artifactId}
    description: ${project.description}
    groupId: ${project.groupId}
    name: ${project.name}
    version: ${project.version}
jedis:
  pool:
    config:
      max-active: 30
      max-idle: 5
      max-wait-millis: 1000
      min-idle: 3
      test-on-borrow: false
      test-on-return: false
      test-while-idle: true
    host: 172.26.154.169
    port: 6378
    db: 4
mybatis-plus:
  configuration:
    cache-enabled: false
    local-cache-scope: statement
    log-impl: org.apache.ibatis.logging.slf4j.Slf4jImpl
    map-underscore-to-camel-case: true
  mapper-locations: classpath*:mapper/*.xml
  type-aliases-package: cn.fw.data.base.db,cn.fw.common.attachment.domain
  type-enums-package: cn.fw.dalaran.domain.enums.**,cn.fw.dalaran.sdk.enums.**
  type-handlers-package: cn.fw.common.data.mybatis.handler
nacos:
  server-addr: 172.26.154.169:8848
ribbon:
  ConnectTimeout: 30000
  MaxAutoRetries: 0
  MaxAutoRetriesNextServer: 0
  ReadTimeout: 120000

server:
  port: 8140
  undertow:
    worker-threads: 50
logbook:
  format:
    style: http

task:
  switch: 'on'
  todocode: 'xiOMX9KlMg'