From 631684666fa187712306ba4ed755f2245373d4d6 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E7=96=AF=E7=8B=82=E7=9A=84=E7=8B=AE=E5=AD=90Li?=
<15040126243@163.com>
Date: Wed, 19 Jul 2023 16:34:43 +0800
Subject: [PATCH] =?UTF-8?q?update=20=E4=BC=98=E5=8C=96=20ruoyi-resource=20?=
=?UTF-8?q?=E6=9C=8D=E5=8A=A1=E6=B7=BB=E5=8A=A0=20websocket=20=E6=A8=A1?=
=?UTF-8?q?=E5=9D=97?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
config/nacos/ruoyi-resource.yml | 7 +++++++
ruoyi-modules/ruoyi-resource/pom.xml | 5 +++++
2 files changed, 12 insertions(+)
diff --git a/config/nacos/ruoyi-resource.yml b/config/nacos/ruoyi-resource.yml
index 4c8d0322..004b43c6 100644
--- a/config/nacos/ruoyi-resource.yml
+++ b/config/nacos/ruoyi-resource.yml
@@ -26,6 +26,13 @@ spring:
# username: ${datasource.system-postgres.username}
# password: ${datasource.system-postgres.password}
+websocket:
+ enabled: true
+ # 路径
+ path: /websocket
+ # 设置访问源地址
+ allowedOrigins: '*'
+
mail:
enabled: false
host: smtp.163.com
diff --git a/ruoyi-modules/ruoyi-resource/pom.xml b/ruoyi-modules/ruoyi-resource/pom.xml
index ea934a9e..14caecfb 100644
--- a/ruoyi-modules/ruoyi-resource/pom.xml
+++ b/ruoyi-modules/ruoyi-resource/pom.xml
@@ -105,6 +105,11 @@
ruoyi-common-translation
+
+ org.dromara
+ ruoyi-common-websocket
+
+
org.dromara