application-test.yml 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. spring:
  2. datasource:
  3. type: com.alibaba.druid.pool.DruidDataSource
  4. driver-class-name: com.mysql.cj.jdbc.Driver
  5. url: jdbc:mysql://${DB_HOST:192.168.50.10}:${DB_PORT:3306}/${DB_NAME:b2b_product}?useUnicode=true&characterEncoding=utf-8&useSSL=false&serverTimezone=Asia/Shanghai
  6. username: ${DB_USERNAME:b2b_order}
  7. password: ${DB_PASSWORD:123456}
  8. druid:
  9. initial-size: ${DB_INITIAL_SIZE:10}
  10. min-idle: ${DB_MIN_IDLE:10}
  11. max-active: ${DB_MAX_ACTIVE:50}
  12. max-wait: ${DB_MAX_WAIT:60000}
  13. redisson:
  14. single-server-config:
  15. address: redis://${REDIS_HOST:192.168.50.8}:${REDIS_PORT:6379}
  16. password: ${REDIS_PASSWORD:Pass2010}
  17. database: ${REDIS_DATABASE:1}
  18. connection-minimum-idle-size: ${REDIS_MIN_IDLE:10}
  19. connection-pool-size: ${REDIS_POOL_SIZE:64}
  20. management:
  21. endpoints:
  22. web:
  23. exposure:
  24. include: health,info,metrics
  25. endpoint:
  26. health:
  27. show-details: when_authorized
  28. logging:
  29. level:
  30. com.poyee: info
  31. feign:
  32. client:
  33. checklist:
  34. url: ${CHECKLIST_URL:http://localhost:8084}
  35. order:
  36. url: ${ORDER_URL:http://localhost:8081}
  37. dict:
  38. url: ${DICT_URL:http://localhost:8082}