ebike-plus/ebike-report/src/main/resources/application-dev.yml

62 lines
1.6 KiB
YAML
Raw Normal View History

2025-10-30 10:46:28 +08:00
server:
2025-11-18 10:16:46 +08:00
port: 10016
2025-10-30 10:46:28 +08:00
spring:
application:
name: ebike-report
cloud:
nacos:
server-addr: 127.0.0.1:8848 # nacos
username: nacos
password: nacos
jackson:
serialization:
write-dates-as-timestamps: false
date-format: yyyy-MM-dd HH:mm:ss
time-zone: GMT+8
kafka:
2025-11-13 15:37:47 +08:00
bootstrap-servers: 192.168.101.40:9092
2025-10-30 10:46:28 +08:00
producer:
retries: 0
key-serializer: org.apache.kafka.common.serialization.StringSerializer
value-serializer: org.apache.kafka.common.serialization.StringSerializer
consumer:
group-id: ${random.uuid}-${spring.application.name}
key-deserializer: org.apache.kafka.common.serialization.StringDeserializer
value-deserializer: org.apache.kafka.common.serialization.StringDeserializer
listener:
missing-topics-fatal: false
data:
# redis配置
redis:
# Redis数据库索引默认为0
database: 2
2025-10-30 10:46:28 +08:00
# Redis服务器地址
2025-11-13 15:37:47 +08:00
host: 47.109.71.130
2025-10-30 10:46:28 +08:00
# Redis服务器连接端口
port: 6379
# Redis服务器连接密码默认为空
2025-11-13 15:37:47 +08:00
password: 970529
2025-10-30 10:46:28 +08:00
# 连接超时时间
lettuce:
pool:
# 连接池最大连接数
max-active: 200
# 连接池最大阻塞等待时间(使用负值表示没有限制)
max-wait: -1ms
# 连接池中的最大空闲连接
max-idle: 10
# 连接池中的最小空闲连接
min-idle: 0
management:
endpoints:
web:
exposure:
include: health,info
endpoint:
health:
show-details: always
logging:
pattern:
dateformat: yyyy-MM-dd HH:mm:ss.SSS # 包含毫秒