Skip to content

Commit 94c0da6

Browse files
committed
🎉 spring-boot-demo-websocket-socketio 初始化
1 parent 6b827c9 commit 94c0da6

File tree

6 files changed

+126
-0
lines changed

6 files changed

+126
-0
lines changed

pom.xml

+1
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535
<module>spring-boot-demo-swagger</module>
3636
<module>spring-boot-demo-swagger-beauty</module>
3737
<module>spring-boot-demo-rbac-security</module>
38+
<module>spring-boot-demo-websocket-socketio</module>
3839
<module>spring-boot-demo-war</module>
3940
<module>spring-boot-demo-elasticsearch</module>
4041
<module>spring-boot-demo-neo4j</module>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
/target/
2+
!.mvn/wrapper/maven-wrapper.jar
3+
4+
### STS ###
5+
.apt_generated
6+
.classpath
7+
.factorypath
8+
.project
9+
.settings
10+
.springBeans
11+
.sts4-cache
12+
13+
### IntelliJ IDEA ###
14+
.idea
15+
*.iws
16+
*.iml
17+
*.ipr
18+
19+
### NetBeans ###
20+
/nbproject/private/
21+
/build/
22+
/nbbuild/
23+
/dist/
24+
/nbdist/
25+
/.nb-gradle/
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
4+
<modelVersion>4.0.0</modelVersion>
5+
6+
<artifactId>spring-boot-demo-websocket-socketio</artifactId>
7+
<version>1.0.0-SNAPSHOT</version>
8+
<packaging>jar</packaging>
9+
10+
<name>spring-boot-demo-websocket-socketio</name>
11+
<description>Demo project for Spring Boot</description>
12+
13+
<parent>
14+
<groupId>com.xkcoding</groupId>
15+
<artifactId>spring-boot-demo</artifactId>
16+
<version>1.0.0-SNAPSHOT</version>
17+
</parent>
18+
19+
<properties>
20+
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
21+
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
22+
<java.version>1.8</java.version>
23+
<netty-socketio.version>1.7.12</netty-socketio.version>
24+
</properties>
25+
26+
<dependencies>
27+
<dependency>
28+
<groupId>com.corundumstudio.socketio</groupId>
29+
<artifactId>netty-socketio</artifactId>
30+
<version>${netty-socketio.version}</version>
31+
</dependency>
32+
33+
<dependency>
34+
<groupId>org.springframework.boot</groupId>
35+
<artifactId>spring-boot-starter-web</artifactId>
36+
</dependency>
37+
38+
<dependency>
39+
<groupId>org.springframework.boot</groupId>
40+
<artifactId>spring-boot-starter-test</artifactId>
41+
<scope>test</scope>
42+
</dependency>
43+
</dependencies>
44+
45+
<build>
46+
<finalName>spring-boot-demo-websocket-socketio</finalName>
47+
<plugins>
48+
<plugin>
49+
<groupId>org.springframework.boot</groupId>
50+
<artifactId>spring-boot-maven-plugin</artifactId>
51+
</plugin>
52+
</plugins>
53+
</build>
54+
55+
</project>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
package com.xkcoding.websocket.socketio;
2+
3+
import org.springframework.boot.SpringApplication;
4+
import org.springframework.boot.autoconfigure.SpringBootApplication;
5+
6+
/**
7+
* <p>
8+
* 启动器
9+
* </p>
10+
*
11+
* @package: com.xkcoding.websocket.socketio
12+
* @description: 启动器
13+
* @author: yangkai.shen
14+
* @date: Created in 2018-12-12 13:59
15+
* @copyright: Copyright (c) 2018
16+
* @version: V1.0
17+
* @modified: yangkai.shen
18+
*/
19+
@SpringBootApplication
20+
public class SpringBootDemoWebsocketSocketioApplication {
21+
22+
public static void main(String[] args) {
23+
SpringApplication.run(SpringBootDemoWebsocketSocketioApplication.class, args);
24+
}
25+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
server:
2+
port: 8080
3+
servlet:
4+
context-path: /demo
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
package com.xkcoding.websocket.socketio;
2+
3+
import org.junit.Test;
4+
import org.junit.runner.RunWith;
5+
import org.springframework.boot.test.context.SpringBootTest;
6+
import org.springframework.test.context.junit4.SpringRunner;
7+
8+
@RunWith(SpringRunner.class)
9+
@SpringBootTest
10+
public class SpringBootDemoWebsocketSocketioApplicationTests {
11+
12+
@Test
13+
public void contextLoads() {
14+
}
15+
16+
}

0 commit comments

Comments
 (0)