You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

118 lines
3.4 KiB

  1. eureka:
  2. client:
  3. service-url:
  4. defaultZone: http://eureka:1101/eureka/
  5. #mapper文件加载支持两种方式,一种是在config文件中配置,一种是在这里配置
  6. mybatis:
  7. mapper-locations: classpath:mybatis/mapping/*.xml
  8. type-aliases-package: com.neusoft.smart.pos.persistent.domain
  9. logging:
  10. level:
  11. root: info
  12. #DataSource配置,默认主数据源
  13. spring:
  14. datasource:
  15. type: com.alibaba.druid.pool.DruidDataSource
  16. driverClassName: com.mysql.jdbc.Driver
  17. url: jdbc:mysql://rm-2zen3rya8g4zur77c.mysql.rds.aliyuncs.com:3306/otaNewV2?useUnicode=true&characterEncoding=utf-8&zeroDateTimeBehavior=convertToNull&autoReconnect=true&useSSL=false
  18. username: fmposdb
  19. password: fmposdb@2021User
  20. #初始化大小,最小,最大
  21. initialSize: 5
  22. minIdle: 5
  23. maxActive: 20
  24. #配置获取连接等待超时的时间
  25. maxWait: 60000
  26. #配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位是毫秒
  27. timeBetweenEvictionRunsMillis: 60000
  28. #配置一个连接在池中最小生存的时间,单位是毫秒
  29. minEvictableIdleTimeMillis: 300000
  30. validationQuery: SELECT 1 FROM DUAL
  31. testWhileIdle: true
  32. testOnBorrow: false
  33. testOnReturn: false
  34. #打开PSCache,并且指定每个连接上PSCache的大小
  35. poolPreparedStatements: true
  36. maxPoolPreparedStatementPerConnectionSize: 20
  37. #配置监控统计拦截的filters,去掉后监控界面sql无法统计,'wall'用于防火墙
  38. filters: stat,wall,log4j
  39. #通过connectProperties属性来打开mergeSql功能;慢SQL记录
  40. connectionProperties: druid.stat.mergeSql:true;druid.stat.slowSqlMillis:5000
  41. #合并多个DruidDataSource的监控数据
  42. useGlobalDataSourceStat: true
  43. redis:
  44. #数据库索引
  45. database: 20
  46. #主机地址
  47. host: r-2zeaglwf13qqmnllj5.redis.rds.aliyuncs.com
  48. #主机端口
  49. port: 6379
  50. #密码
  51. password: mallone:iF0rm@2l2ol9
  52. #最大连接数,为负表示不限制
  53. maxTotal: 8
  54. #最大阻塞等待时间,为负表示不限制
  55. maxWait: -1
  56. #最大空闲连接
  57. maxIdle: 8
  58. #最小空闲连接
  59. minIdle: 0
  60. #连接超时时间
  61. timeout: 0
  62. jackson:
  63. date-format: yyyy-MM-dd HH:mm:ss
  64. time-zone: GMT+8
  65. mvc:
  66. date-format: yyyy-MM-dd HH:mm:ss
  67. http:
  68. encoding:
  69. charset: UTF-8
  70. enabled: true
  71. server:
  72. tomcat:
  73. uri-encoding: UTF-8
  74. feign:
  75. httpclient:
  76. enabled: true
  77. compression:
  78. request:
  79. enabled: true
  80. response:
  81. enabled: true
  82. zuul:
  83. ribbon:
  84. eager-load:
  85. enabled: true
  86. host:
  87. connect-timeout-millis: 60000
  88. socket-timeout-millis: 60000
  89. add-host-header: true
  90. max-total-connections: 2000 # 默认值
  91. maxTotalConnections: 2000
  92. max-per-route-connections: 2000 # 默认值
  93. maxPerRouteConnections: 2000
  94. hystrix:
  95. command:
  96. service-member:
  97. execution:
  98. isolation:
  99. thread:
  100. timeoutInMilliseconds: 50000
  101. circuitBreaker:
  102. enabled: false
  103. threadpool:
  104. default:
  105. coreSize: 1000
  106. maximumSize: 1000
  107. service-member:
  108. coreSize: 1000
  109. maximumSize: 1000
  110. ribbon:
  111. ReadTimeout: 60000
  112. SocketTimeout: 60000
  113. eager-load:
  114. enabled: true
  115. clients: service-member