fyxservice-pro.yaml 3.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. server:
  2. port: 10018
  3. servlet:
  4. encoding:
  5. charset: UTF-8
  6. force: true
  7. context-path: /fyx
  8. compression:
  9. enabled: true #开启数据压缩
  10. mime-types: application/json,application/xml,text/html,text/xml,text/plain
  11. min-response-size: 2048
  12. logging:
  13. file:
  14. path: log/wookit
  15. level:
  16. root: info
  17. "[javax.management]": INFO
  18. "[org.apache.http]": INFO
  19. "[org.apache.tomcat.util.net.NioEndpoint]": INFO
  20. "[sun.rmi]": INFO
  21. "[com.alibaba.nacos]": ERROR
  22. tracer: trace # 开启trace级别日志,在开发时可以开启此配置,则控制台可以打印es全部请求信息及DSL语句,为了避免重复,开启此项配置后,可以将EE的print-dsl设置为false.
  23. spring:
  24. application:
  25. name: fyxservice
  26. cloud:
  27. gateway:
  28. discovery:
  29. locator:
  30. lower-case-service-id: true
  31. enabled: true
  32. nacos:
  33. discovery:
  34. server-addr: 10.16.0.49:8848
  35. namespace: 02f60846-3747-424e-a598-2ea9e66dfe87
  36. redis:
  37. host: r-wz968zear8t0d8bkbg.redis.rds.aliyuncs.com #Redis服务器地址
  38. database: 2 # Redis数据库索引(默认为0)
  39. port: 6379 # Redis服务器连接端口
  40. password: yn8Vh85rxvtUPnqB # Redis服务器连接密码(默认为空)
  41. prefix: fsv2_pro
  42. jedis:
  43. pool:
  44. max-active: 100 # 连接池最大连接数(使用负值表示没有限制)
  45. max-wait: -1 # 连接池最大阻塞等待时间(使用负值表示没有限制)
  46. max-idle: 20 # 连接池中的最大空闲连接
  47. min-idle: 10 # 连接池中的最小空闲连接
  48. datasource:
  49. url: jdbc:mysql://rm-wz989u6pfs8lb7a22.mysql.rds.aliyuncs.com:3306/fyxservice?useSSL=false&allowPublicKeyRetrieval=true&serverTimezone=GMT%2b8
  50. username: fujicaV2user
  51. password: BGbn4jP!mq4jxn@o4fQyp5*@
  52. type: com.zaxxer.hikari.HikariDataSource
  53. driver-class-name: com.mysql.cj.jdbc.Driver
  54. validation-timeout: 3000
  55. idle-timeout: 60000
  56. minimum-idle: 30
  57. read-only: false
  58. connection-timeout: 60000 #请求连接的超时时间
  59. maximum-pool-size: 100 #最大连接数量
  60. max-lifetime: 1800000 #连接的最长生命周期
  61. connection-test-query: SELECT 1
  62. #指定mybatis映射文件的地址
  63. mybatis:
  64. mapper-locations: classpath:mapper/*.xml
  65. configuration:
  66. log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
  67. async:
  68. corePoolSize: 5
  69. maxPoolSize: 10
  70. queueCapacity: 20
  71. namePrefix: async-service-
  72. aliyun:
  73. oss:
  74. endpoint: https://oss-cn-shenzhen.aliyuncs.com
  75. keyid: LTAI5tALFygbdLmGw1VsDEVw
  76. keysecret: wVJnGaeR8hkxvdnjr2lIzAWlZGVxTG
  77. bucketname: forv2-prod
  78. feign:
  79. httpclient:
  80. enabled: true #开启feign连接池
  81. max-connections: 100
  82. max-connections-per-route: 50
  83. client:
  84. config:
  85. default:
  86. connect-timeout: 2000 #默认连接超时时间
  87. read-timeout: 8000 #默认请求超时时间
  88. payCenterProxy:
  89. connect-timeout: 2000 #代理服务连接超时时间
  90. read-timeout: 25000 #代理服务请求超时时