关注粉丝列表

This commit is contained in:
wangxulei
2024-12-28 13:16:53 +08:00
parent b5a86154e5
commit 4e4f84523e
10 changed files with 29 additions and 0 deletions

View File

@@ -160,6 +160,13 @@
<version>3.12.0</version>
</dependency>
<dependency>
<groupId>org.t-io</groupId>
<artifactId>tio-websocket-spring-boot-starter</artifactId>
<!--此版本号跟着tio主版本号一致即可-->
<version>3.3.2.v20190601-RELEASE</version>
</dependency>
</dependencies>
<build>

View File

@@ -2,8 +2,10 @@ package com.dd.admin;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.tio.websocket.starter.EnableTioWebSocketServer;
@SpringBootApplication
@EnableTioWebSocketServer
public class AdminApplication {
public static void main(String[] args) {

View File

@@ -0,0 +1,13 @@
package com.dd.admin.business.webSocket;
import org.tio.core.ChannelContext;
import java.util.Map;
/**
* 处理消息的抽象接口
* @Author: 王旭磊
*/
public interface MsgHandlerInterface {
Object handler(Map map, ChannelContext context);
}

View File

@@ -0,0 +1 @@
package com.dd.admin.business.webSocket;

View File

@@ -0,0 +1 @@
package com.dd.admin.business.webSocket.controller;

View File

@@ -0,0 +1 @@
package com.dd.admin.business.webSocket.handler;

View File

@@ -0,0 +1 @@
package com.dd.admin.business.webSocket.handler;

View File

@@ -0,0 +1 @@
package com.dd.admin.business.webSocket.handler;

View File

@@ -0,0 +1 @@
package com.dd.admin.business.webSocket.handler;

View File

@@ -0,0 +1 @@
package com.dd.admin.business.webSocket.util;