You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
|
server:
|
|
|
|
|
port: 8088
|
|
|
|
|
servlet:
|
|
|
|
|
context-path: /sany-shenyang-realtime-drive
|
|
|
|
|
|
|
|
|
|
spring:
|
|
|
|
|
application:
|
|
|
|
|
name: sany-shenyang-realtime-drive
|
|
|
|
|
datasource:
|
|
|
|
|
dynamic:
|
|
|
|
|
primary: shenyang
|
|
|
|
|
datasource:
|
|
|
|
|
shenyang:
|
|
|
|
|
driver-class-name: com.mysql.jdbc.Driver
|
|
|
|
|
url: jdbc:mysql://10.31.12.195:3306/sany?useUnicode=true&characterEncoding=UTF-8&serverTimezone=GMT%2B8&allowMultiQueries=true
|
|
|
|
|
username: root
|
|
|
|
|
password: SySany!0307#
|
|
|
|
|
type: com.zaxxer.hikari.HikariDataSource
|
|
|
|
|
hikari:
|
|
|
|
|
minimum-idle: 5
|
|
|
|
|
maximum-pool-size: 15
|
|
|
|
|
connection-test-query: SELECT 1
|
|
|
|
|
max-lifetime: 1800000
|
|
|
|
|
connection-timeout: 30000
|
|
|
|
|
pool-name: DatebookHikariCP
|
|
|
|
|
|
|
|
|
|
redis:
|
|
|
|
|
# 地址
|
|
|
|
|
host: 127.0.0.1
|
|
|
|
|
# 端口,默认为6379
|
|
|
|
|
port: 6379
|
|
|
|
|
# 数据库索引
|
|
|
|
|
database: 0
|
|
|
|
|
# 密码
|
|
|
|
|
password: 123456
|
|
|
|
|
# 连接超时时间
|
|
|
|
|
timeout: 10000
|
|
|
|
|
lettuce:
|
|
|
|
|
pool:
|
|
|
|
|
# 连接池中的最小空闲连接
|
|
|
|
|
min-idle: 1000
|
|
|
|
|
# 连接池中的最大空闲连接
|
|
|
|
|
max-idle: -1
|
|
|
|
|
# 连接池的最大数据库连接数
|
|
|
|
|
max-active: -1
|
|
|
|
|
#连接池最大阻塞等待时间(使用负值表示没有限制)
|
|
|
|
|
max-wait: -1ms
|
|
|
|
|
|
|
|
|
|
kafka:
|
|
|
|
|
second:
|
|
|
|
|
bootstrap-servers: 10.31.11.64:9092,10.31.11.91:9092,10.31.11.93:9092
|
|
|
|
|
consumer:
|
|
|
|
|
auto-offset-reset: latest
|
|
|
|
|
enable-auto-commit: false
|
|
|
|
|
key-deserializer: org.apache.kafka.common.serialization.StringDeserializer
|
|
|
|
|
value-deserializer: org.apache.kafka.common.serialization.StringDeserializer
|
|
|
|
|
listener:
|
|
|
|
|
# 消费监听接口监听的主题不存在时,默认会报错。所以通过设置为 false ,解决报错
|
|
|
|
|
missing-topics-fatal: false
|
|
|
|
|
# 配置20个消费者线程
|
|
|
|
|
concurrency: 20
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
mybatis-plus:
|
|
|
|
|
mapper-locations: classpath:/mapper/**/*.xml
|