application-prod.yml 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. #生产环境
  2. spring:
  3. profiles: prod
  4. datasource:
  5. driver-class-name: com.mysql.cj.jdbc.Driver
  6. url: jdbc:mysql://39.99.215.130:3306/netpump?useUnicode=true&characterEncoding=utf-8&serverTimezone=Asia/Shanghai
  7. # url: jdbc:mysql://127.0.0.1:3306/netpump?useUnicode=true&characterEncoding=utf-8&serverTimezone=Asia/Shanghai
  8. username: root
  9. password: 123456
  10. druid:
  11. initial-size: 8 #连接池初始化大小
  12. min-idle: 10 #最小空闲连接数
  13. max-active: 20 #最大连接数
  14. web-stat-filter:
  15. exclusions: "*.js,*.gif,*.jpg,*.png,*.css,*.ico,/druid/*" #不统计这些请求数据
  16. stat-view-servlet: #访问监控网页的登录用户名和密码
  17. login-username: druid
  18. login-password: druid
  19. redis:
  20. # host: 172.18.0.1
  21. host: 39.99.215.130
  22. # host: 127.0.0.1
  23. database: 0 # Redis数据库索引(默认为0)
  24. port: 6379 # Redis服务器连接端口
  25. password: 123456 # Redis服务器连接密码(默认为空)
  26. timeout: 6000 # 连接超时时间(毫秒
  27. jedis:
  28. pool:
  29. max-active: 1000 # 连接池最大连接数(使用负值表示没有限制)
  30. max-wait: -1 # 连接池最大阻塞等待时间(使用负值表示没有限制)
  31. max-idle: 16 # 连接池中的最大空闲连接
  32. min-idle: 8 # 连接池中的最小空闲连接
  33. jackson:
  34. date-format: yyyy-MM-dd HH:mm:ss
  35. time-zone: GMT+8
  36. rabbitmq:
  37. host: 39.99.215.130
  38. # host: 118.190.103.83
  39. port: 5672
  40. username: guest
  41. password: guest
  42. virtual-host: netpump
  43. listener:
  44. simple:
  45. acknowledge-mode: none
  46. # publisher-confirms: true
  47. publisher-returns: true
  48. #日志
  49. logging:
  50. config: classpath:log/logback.xml
  51. path: /usr/log/netpump-service
  52. level:
  53. root: info
  54. file:
  55. max-history: 10
  56. max-size: 10
  57. server:
  58. port: 8095