Explorar el Código

update 优化 ruoyi-resource 服务添加 websocket 模块

疯狂的狮子Li hace 3 años
padre
commit
631684666f
Se han modificado 2 ficheros con 12 adiciones y 0 borrados
  1. 7 0
      config/nacos/ruoyi-resource.yml
  2. 5 0
      ruoyi-modules/ruoyi-resource/pom.xml

+ 7 - 0
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

+ 5 - 0
ruoyi-modules/ruoyi-resource/pom.xml

@@ -105,6 +105,11 @@
             <artifactId>ruoyi-common-translation</artifactId>
         </dependency>
 
+        <dependency>
+            <groupId>org.dromara</groupId>
+            <artifactId>ruoyi-common-websocket</artifactId>
+        </dependency>
+
         <!-- RuoYi Api System -->
         <dependency>
             <groupId>org.dromara</groupId>