application-pro.yml 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. server:
  2. port: 8003
  3. spring:
  4. datasource:
  5. url: jdbc:mysql://123.56.214.150:3306/yhc?autoReconnect=true&failOverReadOnly=false&serverTimezone=UTC&useSSL=false&allowPublicKeyRetrieval=true&useUnicode=true&characterEncoding=UTF-8
  6. driver-class-name: com.mysql.jdbc.Driver
  7. password: P7pjJ2d6R1FdBMmz
  8. username: root
  9. hikari:
  10. maximum-pool-size: 16
  11. minimum-idle: 2
  12. idle-timeout: 10000
  13. redis:
  14. host: 123.56.214.150
  15. port: 6379
  16. password: bjtdba
  17. database: 6
  18. timeout: 5000
  19. jedis:
  20. pool:
  21. # 连接池最大连接数(使用负值表示没有限制)
  22. max-active: 200
  23. # 连接池最大阻塞等待时间(使用负值表示没有限制)
  24. max-wait: -1
  25. # 连接池中的最大空闲连接
  26. max-idle: 8
  27. # 连接池中的最小空闲连接
  28. min-idle: 0
  29. mybatis:
  30. #configuration:
  31. ## 开启驼峰格式
  32. #map-underscore-to-camel-case: false
  33. type-handlers-package: com.bjtdba.userCenter.dao
  34. # mapper配置文件地址
  35. mapper-locations: classpath*:/mapper/*.xml
  36. logging:
  37. pattern:
  38. console: "%d - %msg%n"
  39. level:
  40. com:
  41. bjtdba:
  42. order: DEBUG
  43. #配置eureka
  44. eureka:
  45. client:
  46. service-url:
  47. defaultZone: http://127.0.0.1:8000/eureka/
  48. instance:
  49. prefer-ip-address: true #使用ip地址注册