product-beta.yml 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. spring:
  2. # 数据源连接--start
  3. datasource:
  4. # url: jdbc:mysql://172.31.165.27:3306/caimei?characterEncoding=UTF8&serverTimezone=Asia/Shanghai
  5. # username: developer
  6. # password: J5p3tgOVazNl4ydf
  7. url: jdbc:mysql://119.29.164.246:3306/caimei?characterEncoding=UTF8&serverTimezone=Asia/Shanghai
  8. username: developer
  9. password: 05bZ/OxTB:X+yd%1
  10. # Hikari will use the above plus the following to setup connection pooling
  11. type: com.zaxxer.hikari.HikariDataSource
  12. hikari:
  13. minimum-idle: 5
  14. maximum-pool-size: 15
  15. auto-commit: true
  16. idle-timeout: 30000
  17. pool-name: DatebookHikariCP
  18. max-lifetime: 1800000
  19. connection-timeout: 30000
  20. connection-test-query: SELECT 1
  21. # 数据源连接--end
  22. redis:
  23. host: 172.31.165.27
  24. port: 6379
  25. password: 6#xsI%b4o@5c3RoE
  26. #Redis数据库索引(默认为0)
  27. database: 0
  28. #连接池最大连接数(使用负值表示没有限制)
  29. jedis:
  30. pool:
  31. max-active: 50
  32. #连接池最大阻塞等待时间(使用负值表示没有限制)
  33. max-wait: 3000
  34. #连接池中的最大空闲连接
  35. max-idle: 20
  36. #连接池中的最小空闲连接
  37. min-idle: 2
  38. #连接超时时间(毫秒)
  39. timeout: 5000
  40. #整合mybatis
  41. mybatis:
  42. #加载Mybatis映射文件
  43. mapper-locations:
  44. - classpath:mapper/*.xml
  45. # 指定服务注册中心的地址
  46. eureka:
  47. instance:
  48. prefer-ip-address: true # 是否使用 ip 地址注册
  49. instance-id: ${spring.cloud.client.ip-address}:${server.port} # ip:port
  50. client:
  51. service-url: # 设置服务注册中心地址
  52. defaultZone: http://47.119.112.46:18000/eureka/
  53. #日志配置
  54. logging:
  55. file:
  56. path: /mnt/newdatadrive/data/runtime/cloud-instance/server-product/logs
  57. level:
  58. root: info
  59. # swagger配置
  60. swagger:
  61. # swagger开启状态,true开启,false关闭
  62. enabled: true
  63. ui-config:
  64. operations-sorter: method