This commit is contained in:
2026-04-20 20:42:57 +08:00
parent 7153c00d0c
commit 111631a426
7 changed files with 206 additions and 109 deletions

View File

@ -70,7 +70,7 @@ spring:
# 端口默认为6379
port: 6379
# 数据库索引
database: 0
database: 3
# 密码
password: 12345678
# 连接超时时间
@ -92,7 +92,7 @@ spring:
druid:
# 主库数据源
master:
url: jdbc:mysql://172.17.0.13:3306/setri_ems?useUnicode=true&characterEncoding=utf8&rewriteBatchedStatements=true&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
url: jdbc:mysql://172.17.0.13:3306/setri_ems_new?useUnicode=true&characterEncoding=utf8&rewriteBatchedStatements=true&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
username: ems
password: Aa112211!
# 从库数据源
@ -188,7 +188,7 @@ xss:
mqtt:
broker.url: tcp://121.5.164.6:1883
client.id: ems-cloud
client.id: ems-cloud-new
username: dmbroker
password: qwer1234
connection-timeout: 15
@ -216,7 +216,7 @@ weather:
influxdb:
enabled: true
url: http://172.17.0.7:8086/
api-token: B_1HvHbUhubQQhLdI0XtNVw7maWS1aIjVZQ1a3PGD6b-VNg3_JUo_jHgZmjeBKYXnGATNdIqfpl-FAVbJ4UIPg==
api-token: l_MUXGYFs15utEaLLLgGUUkHYVA84nweimAyeiHNRIg_FWy3ACcdA85LnxDIBKA8bKxbPp2isTkrqHzrhXtZYw==
write-method: POST
read-method: GET
write-path: /api/v2/write

View File

@ -94,7 +94,7 @@ spring:
druid:
# 主库数据源
master:
url: jdbc:mysql://122.51.194.184:13306/setri_ems?useUnicode=true&characterEncoding=utf8&rewriteBatchedStatements=true&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
url: jdbc:mysql://122.51.194.184:13306/setri_ems_new?useUnicode=true&characterEncoding=utf8&rewriteBatchedStatements=true&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
username: ems
password: 12345678
# 从库数据源

View File

@ -70,6 +70,18 @@
<pattern>${log.pattern}</pattern>
</encoder>
</appender>
<!-- InfluxDB 写入成功日志输出 -->
<appender name="sys-influxdb" class="ch.qos.logback.core.rolling.RollingFileAppender">
<file>${log.path}/sys-influxdb.log</file>
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
<fileNamePattern>${log.path}/sys-influxdb.%d{yyyy-MM-dd}.log</fileNamePattern>
<maxHistory>60</maxHistory>
</rollingPolicy>
<encoder>
<pattern>${log.pattern}</pattern>
</encoder>
</appender>
<!-- 系统模块日志级别控制 -->
<logger name="com.xzzn" level="info" />
@ -90,4 +102,9 @@
<logger name="sys-user" level="info">
<appender-ref ref="sys-user"/>
</logger>
<!-- InfluxDB 写入成功专用日志 -->
<logger name="sys-influxdb" level="info" additivity="false">
<appender-ref ref="sys-influxdb"/>
</logger>
</configuration>