| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879 |
- server:
- port: 1004
- spring:
- application:
- name: websocket
-
- # 数据库配置
- datasource:
- url: jdbc:mysql://115.190.125.125:3306/hunlian?useUnicode=true&characterEncoding=utf8&serverTimezone=GMT%2B8&useSSL=false&allowPublicKeyRetrieval=true
- username: root
- password: lsx@hfs?gln.lsc
- driver-class-name: com.mysql.cj.jdbc.Driver
- # HikariCP 连接池配置
- hikari:
- minimum-idle: 5 # 最小空闲连接数
- maximum-pool-size: 20 # 最大连接池大小
- connection-timeout: 30000 # 连接超时时间(毫秒)30秒
- idle-timeout: 600000 # 空闲连接超时时间(毫秒)10分钟
- max-lifetime: 1800000 # 连接最大存活时间(毫秒)30分钟
- connection-test-query: SELECT 1 # 连接测试查询
-
- # Redis配置
- redis:
- host: 115.190.125.125
- port: 6377
- password: # 如果有密码请填写
- database: 0 # 使用数据库0
- timeout: 3000ms
- lettuce:
- pool:
- max-active: 8 # 连接池最大连接数
- max-idle: 8 # 连接池最大空闲连接数
- min-idle: 0 # 连接池最小空闲连接数
- max-wait: -1ms # 连接池最大阻塞等待时间
-
- # RabbitMQ配置(已禁用 - 如需启用请取消注释)
- # rabbitmq:
- # host: 115.190.125.125
- # port: 5672
- # username: guest
- # password: guest
- # virtual-host: /
- # listener:
- # simple:
- # acknowledge-mode: auto
- # concurrency: 5
- # max-concurrency: 10
- # prefetch: 1
-
- # Jackson配置
- jackson:
- default-property-inclusion: non_null # 忽略null值
-
- # MongoDB配置(三重存储架构)
- data:
- mongodb:
- host: 115.190.125.125
- port: 27017
- database: chat_message
- authentication-database: admin
- username: admin
- password: oldtable123321
- # MyBatis Plus配置
- mybatis-plus:
- configuration:
- map-underscore-to-camel-case: true
- log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
- global-config:
- db-config:
- logic-delete-field: isDeleted
- logic-delete-value: 1
- logic-not-delete-value: 0
- # 腾讯云 IM 配置
- tim:
- sdkappid: 1600109674
- secret: cb2c6ade9b960ea635ff969f79054e8b582efe7aa75e4008c63042b0bbed1e7c
|