From b91fdc439ca1ba0b98409de0f1c0edf6fd626ee9 Mon Sep 17 00:00:00 2001
From: ‘liusuyi’ <1951119284@qq.com>
Date: 星期五, 21 七月 2023 14:16:35 +0800
Subject: [PATCH] 增加app一键报警
---
src/main/resources/application.yml | 44 +++++++++++++++++++++++++++++++-------------
1 files changed, 31 insertions(+), 13 deletions(-)
diff --git a/src/main/resources/application.yml b/src/main/resources/application.yml
index 2e6ddc4..4f0add0 100644
--- a/src/main/resources/application.yml
+++ b/src/main/resources/application.yml
@@ -1,15 +1,39 @@
+
spring:
+ datasource:
+ # 浣跨敤druid鏁版嵁搴撹繛鎺ユ睜
+ druid:
+ #寮�鍚痙ruid鐩戞帶web
+ stat-view-servlet:
+ enabled: true
+ driver-class-name: org.postgresql.Driver
+ # url: jdbc:postgresql://111.40.46.199:15432/ry-vue?stringtype=unspecified
+ # username: postgres
+ # password: Yykj.2021
+ url: jdbc:postgresql://192.168.1.15:5432/ry-vue?stringtype=unspecified
+ username: postgres
+ password: postgres
+ #鏈�澶ц繛鎺ユ暟
+ maxActive: 30
+ #鏈�灏忚繛鎺ユ暟
+ minIdle: 5
+ #鑾峰彇杩炴帴鐨勬渶澶х瓑寰呮椂闂�
+ maxWait: 10000
+ #瑙e喅mysql8灏忔椂鐨勯棶棰�
+ validation-query: SELECT 'X'
+ #绌洪棽杩炴帴鐨勬鏌ユ椂闂撮棿闅�
+ timeBetweenEvictionRunsMillis: 60000
+ #绌洪棽杩炴帴鏈�灏忕┖闂叉椂闂�
+ minEvictableIdleTimeMillis: 300000
netty:
udp:
port: 40000
enabled: true
tcp:
- host: 112.98.126.2
- port: 1200
- enabled: true
+ enabled: false
mqtt:
host: tcp://192.168.1.15:1883
- clientId: c3
+ clientId: cc3
username: admin
password: xzx12345
topic: tube
@@ -18,14 +42,6 @@
enabled: true
stealelec:
url: http://iot.zhdk.net:8090/Warning/GetWarning?userName=cy4oil
- datasource:
- driver-class-name: org.postgresql.Driver
- url: jdbc:postgresql://111.40.46.199:15432/ry-vue?stringtype=unspecified
- username: postgres
- password: Yykj.2021
-# url: jdbc:postgresql://192.168.1.15:5432/ry-vue?stringtype=unspecified
-# username: postgres
-# password: postgres
mybatis:
typeAliasesPackage: com.ard.alarm.**.domain
mapperLocations: classpath:/mapper/*.xml
@@ -36,4 +52,6 @@
secretKey: xzx12345
logging:
level:
- com.ard: info
\ No newline at end of file
+ com.ard: info
+server:
+ port: 8088
\ No newline at end of file
--
Gitblit v1.9.3