From 94c0da69edace66fe52edf16b27555a7ba0f1ae4 Mon Sep 17 00:00:00 2001 From: "Yangkai.Shen" <237497819@qq.com> Date: Wed, 12 Dec 2018 17:54:04 +0800 Subject: [PATCH] =?UTF-8?q?:tada:=20spring-boot-demo-websocket-socketio=20?= =?UTF-8?q?=E5=88=9D=E5=A7=8B=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pom.xml | 1 + .../.gitignore | 25 +++++++++ spring-boot-demo-websocket-socketio/pom.xml | 55 +++++++++++++++++++ ...gBootDemoWebsocketSocketioApplication.java | 25 +++++++++ .../src/main/resources/application.yml | 4 ++ ...DemoWebsocketSocketioApplicationTests.java | 16 ++++++ 6 files changed, 126 insertions(+) create mode 100644 spring-boot-demo-websocket-socketio/.gitignore create mode 100644 spring-boot-demo-websocket-socketio/pom.xml create mode 100644 spring-boot-demo-websocket-socketio/src/main/java/com/xkcoding/websocket/socketio/SpringBootDemoWebsocketSocketioApplication.java create mode 100644 spring-boot-demo-websocket-socketio/src/main/resources/application.yml create mode 100644 spring-boot-demo-websocket-socketio/src/test/java/com/xkcoding/websocket/socketio/SpringBootDemoWebsocketSocketioApplicationTests.java diff --git a/pom.xml b/pom.xml index 113159a..a9e030c 100644 --- a/pom.xml +++ b/pom.xml @@ -35,6 +35,7 @@ spring-boot-demo-swagger spring-boot-demo-swagger-beauty spring-boot-demo-rbac-security + spring-boot-demo-websocket-socketio spring-boot-demo-war spring-boot-demo-elasticsearch spring-boot-demo-neo4j diff --git a/spring-boot-demo-websocket-socketio/.gitignore b/spring-boot-demo-websocket-socketio/.gitignore new file mode 100644 index 0000000..82eca33 --- /dev/null +++ b/spring-boot-demo-websocket-socketio/.gitignore @@ -0,0 +1,25 @@ +/target/ +!.mvn/wrapper/maven-wrapper.jar + +### STS ### +.apt_generated +.classpath +.factorypath +.project +.settings +.springBeans +.sts4-cache + +### IntelliJ IDEA ### +.idea +*.iws +*.iml +*.ipr + +### NetBeans ### +/nbproject/private/ +/build/ +/nbbuild/ +/dist/ +/nbdist/ +/.nb-gradle/ \ No newline at end of file diff --git a/spring-boot-demo-websocket-socketio/pom.xml b/spring-boot-demo-websocket-socketio/pom.xml new file mode 100644 index 0000000..96513e2 --- /dev/null +++ b/spring-boot-demo-websocket-socketio/pom.xml @@ -0,0 +1,55 @@ + + + 4.0.0 + + spring-boot-demo-websocket-socketio + 1.0.0-SNAPSHOT + jar + + spring-boot-demo-websocket-socketio + Demo project for Spring Boot + + + com.xkcoding + spring-boot-demo + 1.0.0-SNAPSHOT + + + + UTF-8 + UTF-8 + 1.8 + 1.7.12 + + + + + com.corundumstudio.socketio + netty-socketio + ${netty-socketio.version} + + + + org.springframework.boot + spring-boot-starter-web + + + + org.springframework.boot + spring-boot-starter-test + test + + + + + spring-boot-demo-websocket-socketio + + + org.springframework.boot + spring-boot-maven-plugin + + + + + diff --git a/spring-boot-demo-websocket-socketio/src/main/java/com/xkcoding/websocket/socketio/SpringBootDemoWebsocketSocketioApplication.java b/spring-boot-demo-websocket-socketio/src/main/java/com/xkcoding/websocket/socketio/SpringBootDemoWebsocketSocketioApplication.java new file mode 100644 index 0000000..c604527 --- /dev/null +++ b/spring-boot-demo-websocket-socketio/src/main/java/com/xkcoding/websocket/socketio/SpringBootDemoWebsocketSocketioApplication.java @@ -0,0 +1,25 @@ +package com.xkcoding.websocket.socketio; + +import org.springframework.boot.SpringApplication; +import org.springframework.boot.autoconfigure.SpringBootApplication; + +/** + *

+ * 启动器 + *

+ * + * @package: com.xkcoding.websocket.socketio + * @description: 启动器 + * @author: yangkai.shen + * @date: Created in 2018-12-12 13:59 + * @copyright: Copyright (c) 2018 + * @version: V1.0 + * @modified: yangkai.shen + */ +@SpringBootApplication +public class SpringBootDemoWebsocketSocketioApplication { + + public static void main(String[] args) { + SpringApplication.run(SpringBootDemoWebsocketSocketioApplication.class, args); + } +} diff --git a/spring-boot-demo-websocket-socketio/src/main/resources/application.yml b/spring-boot-demo-websocket-socketio/src/main/resources/application.yml new file mode 100644 index 0000000..a02fbde --- /dev/null +++ b/spring-boot-demo-websocket-socketio/src/main/resources/application.yml @@ -0,0 +1,4 @@ +server: + port: 8080 + servlet: + context-path: /demo \ No newline at end of file diff --git a/spring-boot-demo-websocket-socketio/src/test/java/com/xkcoding/websocket/socketio/SpringBootDemoWebsocketSocketioApplicationTests.java b/spring-boot-demo-websocket-socketio/src/test/java/com/xkcoding/websocket/socketio/SpringBootDemoWebsocketSocketioApplicationTests.java new file mode 100644 index 0000000..99b109b --- /dev/null +++ b/spring-boot-demo-websocket-socketio/src/test/java/com/xkcoding/websocket/socketio/SpringBootDemoWebsocketSocketioApplicationTests.java @@ -0,0 +1,16 @@ +package com.xkcoding.websocket.socketio; + +import org.junit.Test; +import org.junit.runner.RunWith; +import org.springframework.boot.test.context.SpringBootTest; +import org.springframework.test.context.junit4.SpringRunner; + +@RunWith(SpringRunner.class) +@SpringBootTest +public class SpringBootDemoWebsocketSocketioApplicationTests { + + @Test + public void contextLoads() { + } + +}