application-prod.yml 3.1 KB
Newer Older
葛齐林's avatar
葛齐林 committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126
spring:
  http:
    encoding:
      charset: UTF-8
      enabled: true
      force: true
  cloud:
    loadbalancer:
      retry:
        enabled: false
  freemarker:
    charset: UTF-8
    suffix: .html
    template-loader-path: classpath:/static/
  rabbitmq:
    host: localhost
    port: 5672
    username: guest
    password: guest
  mvc:
    async:
      request-timeout: 60000
  redis:
    host: db.suntrayoa.com
    port: 26379
    password:
    jedis:
      pool:
        max-active: 8
        # 连接池最大阻塞等待时间(使用负值表示没有限制)
        max-wait: -1
        # 连接池中的最大空闲连接
        max-idle: 8
        # 连接池中的最小空闲连接
        min-idle: 0
    timeout: 5000
    open: true
    #durid configuration
  datasource:
    #    type: com.alibaba.druid.pool.DruidDataSource
    driver-class-name: com.mysql.jdbc.Driver
    url: jdbc:mysql://mysql5.7:3306/crsh?useUnicode=true&characterEncoding=utf-8&autoReconnect=true&allowMultiQueries=true
    #url: jdbc:mysql://10.20.2.133:3306/crsh?useUnicode=true&characterEncoding=utf-8&autoReconnect=true&allowMultiQueries=true
    username: crsh
    password: Suntray&wuhan123
    initialSize: 0
    minIdle: 0
    maxActive: 1000
    maxWait: -1
    timeBetweenEvictionRunsMillis: 60000
    minEvictableIdleTimeMillis: 1800000
    validationQuery: SELECT 1 FROM DUAL
    testWhileIdle: true
    testOnBorrow: false
    testOnReturn: false
    poolPreparedStatements: true
    maxPoolPreparedStatementPerConnectionSize: 20
    filters: log4j,wall,mergeStat,config  #不能跟proxyFilters同时使用
    #    proxyFilters : WallFilter  #为了批量跟新添加定制Filters
    connectionProperties: config.decrypt=false
    removeAbandoned: true
    druid.removeAbandonedTimeout: 600


eureka:
  client:
    healthcheck:
      enabled: false
    serviceUrl:
      defaultZone: http://user:password123@eureka:8761/eureka
  instance:
    lease-renewal-interval-in-seconds: 10
    lease-expiration-duration-in-seconds: 20
    prefer-ip-address: true
    instance-id: ${spring.cloud.client.ip-address}:${spring.application.instance_id:${server.port}}

server:
  tomcat:
    uri-encoding: UTF-8
    max-threads: 100
    min-spare-threads: 20
  connection-timeout: 50000
ribbon:
  hystrix:
    enabled: false
  MaxAutoRetries: 0
  MaxAutoRetriesNextServer: 0
  ReadTimeout: 200000
  ConnectTimeout: 90000
  SocketTimeout: 90000
logging:
  file: ${spring.application.name}.log
  level:
    root: INFO
    com:
      devplatform: DEBUG
    jdbc.sqltiming: DEBUG
feign:
  hystrix:
    enabled: false



management:
  endpoints:
    web:
      exposure:
        include: "health, info, mappings, metrics, loggers, shutdown, pause, resume"
  endpoint:
    health:
      show-details: ALWAYS

mybatis:
  mapper-locations: classpath:com/devplatform/*/mybatis/*.xml

hystrix:
  command:
    default:
      execution:
        timeout:
          enabled: true
        isolation:
          thread:
            timeoutInMilliseconds: 60000

#-------