baoshiwei
2025-04-23 c2375c2bcc0bf9e6a3af7f9776d5a0eb14370b40
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# 应用配置
spring:
  application:
    name: zhitan-engine
  
  # 数据库配置
  datasource:
    url: jdbc:postgresql://localhost:5432/postgres
    username: postgres
    password: 123456
    driver-class-name: org.postgresql.Driver
  
  # JPA配置
  jpa:
    database-platform: org.hibernate.dialect.PostgreSQLDialect
    hibernate:
      ddl-auto: update
    show-sql: false
    properties:
      hibernate:
        format_sql: true
 
# InfluxDB配置
influxdb:
  host: "http://localhost:8086"
  #修改为自己的时序库访问org
  org: "lanbao"
  #修改为自己的时序库bucket
  bucket: "nygl"
  #修改为自己的时序库访问token
  token: "AminQagYp5rjb09mFPYvriK0T0vlF-zmwboqtUzdcq3nkXNuhnEpMuG_Ht5vtfWC4xBIVOThvoxy5reTer9XcQ=="
  measurement: data
  enable: true
 
# 服务器配置
server:
  port: 8082
  servlet:
    context-path: /
 
# 日志配置
logging:
  level:
    root: INFO
    com.zhitan.engine: INFO
    org.hibernate: WARN
    org.springframework: WARN
  file:
    name: logs/zhitan-engine.log
    max-size: 10MB
    max-history: 30