ebike-plus/ebike-report/src/main/resources/application-dev.yml
2026-01-12 13:35:07 +08:00

64 lines
1.7 KiB
YAML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

server:
port: 10016
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:
bootstrap-servers: 192.168.1.11:9092
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
# Redis服务器地址
host: 192.168.1.11
# Redis服务器连接端口
port: 6379
# Redis服务器连接密码默认为空
password: 970529
# 连接超时时间
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:
file:
name: logs/${spring.application.name}.log
pattern:
dateformat: yyyy-MM-dd HH:mm:ss.SSS # 包含毫秒