chargeservice-test.yaml 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  1. server:
  2. port: 10005
  3. servlet:
  4. encoding:
  5. charset: UTF-8
  6. force: true
  7. context-path: /charge
  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: chargeservice
  26. cloud:
  27. gateway:
  28. discovery:
  29. locator:
  30. lower-case-service-id: true
  31. enabled: true
  32. nacos:
  33. discovery:
  34. server-addr: 192.168.2.92:8848
  35. namespace: 49ab56f7-3752-4c43-a935-a1d4024eb82b
  36. redis:
  37. host: 192.168.2.92 #Redis服务器地址
  38. database: 4 # Redis数据库索引(默认为0)
  39. port: 6379 # Redis服务器连接端口
  40. password: Fjc@2025 # Redis服务器连接密码(默认为空)
  41. jedis:
  42. pool:
  43. max-active: 8 # 连接池最大连接数(使用负值表示没有限制)
  44. max-wait: -1 # 连接池最大阻塞等待时间(使用负值表示没有限制)
  45. max-idle: 8 # 连接池中的最大空闲连接
  46. min-idle: 0 # 连接池中的最小空闲连接
  47. datasource:
  48. url: jdbc:mysql://192.168.2.93:3306/test_chargeservice?useSSL=false&serverTimezone=GMT%2b8
  49. username: fujica
  50. password: Fjc@2025
  51. type: com.zaxxer.hikari.HikariDataSource
  52. driver-class-name: com.mysql.cj.jdbc.Driver
  53. validation-timeout: 3000
  54. idle-timeout: 60000
  55. minimum-idle: 30
  56. read-only: false
  57. connection-timeout: 60000 #请求连接的超时时间
  58. maximum-pool-size: 1000 #最大连接数量
  59. max-lifetime: 1800000 #连接的最长生命周期
  60. connection-test-query: select 1 #连接验证sql
  61. main:
  62. allow-bean-definition-overriding: true
  63. #指定mybatis映射文件的地址
  64. mybatis:
  65. mapper-locations: classpath:mapper/*.xml
  66. configuration:
  67. log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
  68. rocketmq:
  69. name-server: 192.168.16.20:9876;192.168.16.21:9876;192.168.16.22:9876
  70. producer:
  71. group: fujica-producer
  72. topic:
  73. topicDcEventAdd: topic_dc_event_add_test
  74. topicDcServiceUpdate: topic_dc_service_update_test
  75. topicExPushParkCarFeeOrder: ex_park_car_fee_order_test
  76. parkCarFeeOrder: park_car_fee_order_test
  77. consumer:
  78. topic:
  79. chargeResult: park_charge_result_test
  80. payResultSync: topic_pay_result_sync_parking_test
  81. group:
  82. chargeResult: park_charge_result_test
  83. payResultSync: topic_pay_result_sync_parking_test
  84. feign:
  85. httpclient:
  86. enabled: true #开启feign连接池
  87. max-connections: 100
  88. max-connections-per-route: 50
  89. client:
  90. config:
  91. default:
  92. connect-timeout: 2000 #默认连接超时时间
  93. read-timeout: 8000 #默认请求超时时间
  94. payCenterProxy:
  95. connect-timeout: 2000 #代理服务连接超时时间
  96. read-timeout: 25000 #代理服务请求超时时
  97. xxl:
  98. job:
  99. admin:
  100. addresses: http://192.168.2.92:8089/xxl-job-admin
  101. executor:
  102. appname: chargeservice
  103. address:
  104. port: 9999
  105. logretentiondays: 30
  106. accessToken: default_token
  107. charge:
  108. component:
  109. uri: http://fee-engine:11005