spring:
|
datasource:
|
driver-class-name: org.postgresql.Driver
|
# PostgreSQL 驱动不识别 serverTimezone,需要使用 options=-c timezone=...
|
url: jdbc:postgresql://10.39.186.6:5432/postgres?currentSchema=public&serverTimezone=Asia/Shanghai";
|
username: postgres
|
password: 123456
|
jackson:
|
time-zone: Asia/Shanghai
|
date-format: yyyy-MM-dd HH:mm:ss
|
redis:
|
host: 10.39.186.3
|
port: 6677
|
password:
|
database: 0
|
timeout: 3000
|
queue-key: redis # Redis Hash Key
|
sync-interval-ms: 5000 # 同步间隔(毫秒),最少 1000
|
|
logging:
|
file:
|
name: logs/timescaledb-utils.log
|
logback:
|
rollingpolicy:
|
max-file-size: 10MB
|
max-history: 30
|
level:
|
root: INFO
|
|
server:
|
port: 8642
|
|
mybatis-plus:
|
mapper-locations: classpath*:mapper/**/*.xml
|
type-aliases-package: com.shlb.timescaledbutils.entity
|
# configuration:
|
# log-impl: org.apache.ibatis.logging.stdout.StdOutImpl # 开启控制台打印 SQL
|