application.yml 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. server:
  2. port: 1004
  3. spring:
  4. application:
  5. name: websocket
  6. # 数据库配置
  7. datasource:
  8. url: jdbc:mysql://115.190.125.125:3306/hunlian?useUnicode=true&characterEncoding=utf8&serverTimezone=GMT%2B8&useSSL=false&allowPublicKeyRetrieval=true
  9. username: root
  10. password: lsx@hfs?gln.lsc
  11. driver-class-name: com.mysql.cj.jdbc.Driver
  12. # HikariCP 连接池配置
  13. hikari:
  14. minimum-idle: 5 # 最小空闲连接数
  15. maximum-pool-size: 20 # 最大连接池大小
  16. connection-timeout: 30000 # 连接超时时间(毫秒)30秒
  17. idle-timeout: 600000 # 空闲连接超时时间(毫秒)10分钟
  18. max-lifetime: 1800000 # 连接最大存活时间(毫秒)30分钟
  19. connection-test-query: SELECT 1 # 连接测试查询
  20. # Redis配置
  21. redis:
  22. host: 115.190.125.125
  23. port: 6377
  24. password: # 如果有密码请填写
  25. database: 0 # 使用数据库0
  26. timeout: 3000ms
  27. lettuce:
  28. pool:
  29. max-active: 8 # 连接池最大连接数
  30. max-idle: 8 # 连接池最大空闲连接数
  31. min-idle: 0 # 连接池最小空闲连接数
  32. max-wait: -1ms # 连接池最大阻塞等待时间
  33. # RabbitMQ配置(已禁用 - 如需启用请取消注释)
  34. # rabbitmq:
  35. # host: 115.190.125.125
  36. # port: 5672
  37. # username: guest
  38. # password: guest
  39. # virtual-host: /
  40. # listener:
  41. # simple:
  42. # acknowledge-mode: auto
  43. # concurrency: 5
  44. # max-concurrency: 10
  45. # prefetch: 1
  46. # Jackson配置
  47. jackson:
  48. default-property-inclusion: non_null # 忽略null值
  49. # MongoDB配置(三重存储架构)
  50. data:
  51. mongodb:
  52. host: 115.190.125.125
  53. port: 27017
  54. database: chat_message
  55. authentication-database: admin
  56. username: admin
  57. password: oldtable123321
  58. # MyBatis Plus配置
  59. mybatis-plus:
  60. configuration:
  61. map-underscore-to-camel-case: true
  62. log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
  63. global-config:
  64. db-config:
  65. logic-delete-field: isDeleted
  66. logic-delete-value: 1
  67. logic-not-delete-value: 0
  68. # 腾讯云 IM 配置
  69. tim:
  70. sdkappid: 1600109674
  71. secret: cb2c6ade9b960ea635ff969f79054e8b582efe7aa75e4008c63042b0bbed1e7c