application.yml 3.46 KB
spring:
  application:
    name: fw-morax
  attachment:
    invoker-system: morax
  cache:
    locker:
      key-prefix: 'morax:locker'
    custom:
      global-prefix: 'morax:global'
      global:
        ttl: 30000
        key-prefix: 'morax:global'
  cloud:
    nacos:
      discovery:
        server-addr: 192.168.0.230:8848
  datasource:
    driver-class-name: com.mysql.jdbc.Driver
    hikari:
      connection-test-query: SELECT 1 FROM DUAL
    password: mysql@pwd123
    url: jdbc:mysql://192.168.0.234:3306/fw_morax?characterEncoding=UTF-8&useSSL=false
    username: root
  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: 192.168.0.234
    lettuce:
      pool:
        max-active: 20
        max-wait: 1S
        min-idle: 3
    port: 6379
    database: 7
  rest-result-processor:
    enabled: false
  servlet:
    multipart:
      enabled: true
      max-file-size: 50MB
      max-request-size: 100MB
  task:
    scheduling:
      thread-name-prefix: morax-scheduling-
auth:
  aes:
    key: bN7DVjFMJPcoWDcR
  ignore:
    start-with: /user/*,/role/*,/user/login
fastdfs:
  charset: UTF-8
  connectTimeout: 2
  group: moraxdfs
  networkTimeout: 30
  port: 8080
  secretKey: FastDFS1234567890
  servers: 192.168.0.230:22122
  token: 'no'

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}
mybatis-plus:
  global-config:
    db-config:
      logic-delete-value: 0 # 逻辑已删除值(默认为 0)
      logic-not-delete-value: 1  # 逻辑未删除值(默认为 1)
  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.morax.domain.enums.**
  type-handlers-package: cn.fw.common.data.mybatis.handler
nacos:
  server-addr: 192.168.0.230:8848
ribbon:
  ConnectTimeout: 30000
  MaxAutoRetries: 0
  MaxAutoRetriesNextServer: 0
  ReadTimeout: 120000
rocketmq:
  name-server: 192.168.0.234:9876
  producer:
    group: ${spring.application.name}
server:
  port: 8140
  undertow:
    worker-threads: 50
logbook:
  format:
    style: http
  write:
    max-body-size: 5000
  exclude:
    - /actuator/**

management:
  endpoints:
    web:
      exposure:
        include: '*'
      # 监控路径前缀
      base-path: /actuator
  endpoint:
    # 开启允许远程shutdown,通过post请求。
    shutdown:
      enabled: true
    health:
      show-details: always
  metrics:
    tags:
      application: ${spring.application.name}

task:
  switch: 'on'

todo:
  person-confirm: 'wqDmVvAQ6b'
  pay-salary-notice: 'XaZZP1ADtz'
  kpi-group-change: 'pWRIQeXZvI'
  salary-group-change: 'zLFSx8BA2I'
  eval-indicator-import: 'zLFSx8BA2I'
  dist-eval-reward: 'Z5zts26iwi'

special-indicator-code:
  base-salary: 'E3f0caA2F1934959'
  work-age: '1093027AFb124440'
  work-day-proportion: 'Work_Day_Proportion'