关注粉丝列表
This commit is contained in:
7
pom.xml
7
pom.xml
@@ -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>
|
||||
|
@@ -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) {
|
||||
|
@@ -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);
|
||||
}
|
@@ -0,0 +1 @@
|
||||
package com.dd.admin.business.webSocket;
|
@@ -0,0 +1 @@
|
||||
package com.dd.admin.business.webSocket.controller;
|
@@ -0,0 +1 @@
|
||||
package com.dd.admin.business.webSocket.handler;
|
@@ -0,0 +1 @@
|
||||
package com.dd.admin.business.webSocket.handler;
|
@@ -0,0 +1 @@
|
||||
package com.dd.admin.business.webSocket.handler;
|
@@ -0,0 +1 @@
|
||||
package com.dd.admin.business.webSocket.handler;
|
@@ -0,0 +1 @@
|
||||
package com.dd.admin.business.webSocket.util;
|
Reference in New Issue
Block a user