更新websocket配置

pull/65/head
fengshuonan 4 years ago
parent bef8c98ad6
commit 343016494b

@ -24,6 +24,21 @@
"name": "spring.datasource.max-pool-prepared-statement-per-connection-size", "name": "spring.datasource.max-pool-prepared-statement-per-connection-size",
"type": "java.lang.String", "type": "java.lang.String",
"description": "Description for spring.datasource.max-pool-prepared-statement-per-connection-size." "description": "Description for spring.datasource.max-pool-prepared-statement-per-connection-size."
},
{
"name": "web-socket.open",
"type": "java.lang.String",
"description": "Description for web-socket.open."
},
{
"name": "prometheus.url",
"type": "java.lang.String",
"description": "Description for prometheus.url."
},
{
"name": "prometheus.instance",
"type": "java.lang.String",
"description": "Description for prometheus.instance."
} }
] ]
} }

@ -4,7 +4,7 @@ spring:
driver-class-name: com.mysql.cj.jdbc.Driver driver-class-name: com.mysql.cj.jdbc.Driver
url: jdbc:mysql://localhost:3306/guns?autoReconnect=true&useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=CONVERT_TO_NULL&useSSL=false&serverTimezone=CTT url: jdbc:mysql://localhost:3306/guns?autoReconnect=true&useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=CONVERT_TO_NULL&useSSL=false&serverTimezone=CTT
username: root username: root
password: root password: 123456
# 连接池大小根据实际情况调整 # 连接池大小根据实际情况调整
max-active: 100 max-active: 100

@ -68,6 +68,7 @@ prometheus:
url: http://localhost:9090/api/v1/ url: http://localhost:9090/api/v1/
# 非必须配置项 # 非必须配置项
instance: instance:
# 是否开启websocket推送消息
web-socket: web-socket:
open: true open: true
ws-url: ws://localhost:${server.port}/message/websocket/{userId}

Loading…
Cancel
Save