Skip to content

Commit c6b33c4

Browse files
committed
add chatRoom src code, update readme
1 parent a18e1fc commit c6b33c4

File tree

7 files changed

+147
-19
lines changed

7 files changed

+147
-19
lines changed

springChatRoom/.gitignore

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
HELP.md
2+
target/
3+
!.mvn/wrapper/maven-wrapper.jar
4+
!**/src/main/**/target/
5+
!**/src/test/**/target/
6+
7+
### STS ###
8+
.apt_generated
9+
.classpath
10+
.factorypath
11+
.project
12+
.settings
13+
.springBeans
14+
.sts4-cache
15+
16+
### IntelliJ IDEA ###
17+
.idea
18+
*.iws
19+
*.iml
20+
*.ipr
21+
22+
### NetBeans ###
23+
/nbproject/private/
24+
/nbbuild/
25+
/dist/
26+
/nbdist/
27+
/.nb-gradle/
28+
build/
29+
!**/src/main/**/build/
30+
!**/src/test/**/build/
31+
32+
### VS Code ###
33+
.vscode/

springChatRoom/README.md

Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -22,22 +22,4 @@
2222
- geo location app
2323
- stock market app
2424
- co-editing system (e.g. google doc ?)
25-
- app needs near real-time update/sync, data transmit is not small
26-
27-
## Ref
28-
- Article
29-
- https://ithelp.ithome.com.tw/articles/10197142
30-
- https://ithelp.ithome.com.tw/articles/10197191
31-
- https://www.baeldung.com/websockets-spring
32-
- https://blog.csdn.net/wwd0501/article/details/54582912
33-
- https://www.slideshare.net/wenhsiaoyi/java-api-for-websocket
34-
- https://www.syscom.com.tw/ePaper_New_Content.aspx?id=368&EPID=194&TableName=sgEPArticle
35-
- https://tw511.com/a/01/16646.html
36-
- Code
37-
- https://spring.io/guides/gs/messaging-stomp-websocket/
38-
- https://morosedog.gitlab.io/springboot-20190416-springboot28/
39-
40-
- Video
41-
- https://youtu.be/r4fdPmZuzmY?si=qrmRTm09Bo53Ina1
42-
- https://youtu.be/RbCFeeePJoM?si=DF6mES5XApvSkhXw
43-
- https://youtu.be/es_fTKyfI4w?si=vVhEz6Us-zrcerTR
25+
- app needs near real-time update/sync, data transmit is not small

springChatRoom/doc/ref.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
## Ref
2+
- Article
3+
- https://blog.csdn.net/qqxx6661/article/details/98883166
4+
- https://github.com/yennanliu/springboot-websocket-demo
5+
6+
- https://ithelp.ithome.com.tw/articles/10197142
7+
- https://ithelp.ithome.com.tw/articles/10197191
8+
- https://www.baeldung.com/websockets-spring
9+
- https://blog.csdn.net/wwd0501/article/details/54582912
10+
- https://www.slideshare.net/wenhsiaoyi/java-api-for-websocket
11+
- https://www.syscom.com.tw/ePaper_New_Content.aspx?id=368&EPID=194&TableName=sgEPArticle
12+
- https://tw511.com/a/01/16646.html
13+
- Code
14+
- https://spring.io/guides/gs/messaging-stomp-websocket/
15+
- https://morosedog.gitlab.io/springboot-20190416-springboot28/
16+
17+
- Video
18+
- https://youtu.be/r4fdPmZuzmY?si=qrmRTm09Bo53Ina1
19+
- https://youtu.be/RbCFeeePJoM?si=DF6mES5XApvSkhXw
20+
- https://youtu.be/es_fTKyfI4w?si=vVhEz6Us-zrcerTR

springChatRoom/pom.xml

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
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 https://maven.apache.org/xsd/maven-4.0.0.xsd">
4+
<modelVersion>4.0.0</modelVersion>
5+
6+
<parent>
7+
<groupId>org.springframework.boot</groupId>
8+
<artifactId>spring-boot-starter-parent</artifactId>
9+
<version>3.0.12</version>
10+
<relativePath/> <!-- lookup parent from repository -->
11+
</parent>
12+
13+
<groupId>com.yen</groupId>
14+
<artifactId>springChatRoom</artifactId>
15+
<version>0.0.1-SNAPSHOT</version>
16+
<name>springChatRoom</name>
17+
<description>Demo project for Spring Boot</description>
18+
19+
<properties>
20+
<java.version>11</java.version>
21+
</properties>
22+
23+
<dependencies>
24+
25+
<dependency>
26+
<groupId>org.springframework.boot</groupId>
27+
<artifactId>spring-boot-starter-web</artifactId>
28+
</dependency>
29+
30+
<dependency>
31+
<groupId>org.springframework.boot</groupId>
32+
<artifactId>spring-boot-starter-websocket</artifactId>
33+
</dependency>
34+
35+
<dependency>
36+
<groupId>org.springframework.boot</groupId>
37+
<artifactId>spring-boot-starter-test</artifactId>
38+
<scope>test</scope>
39+
</dependency>
40+
41+
<!-- &lt;!&ndash; redis &ndash;&gt;-->
42+
<!-- <dependency>-->
43+
<!-- <groupId>org.springframework.boot</groupId>-->
44+
<!-- <artifactId>spring-boot-starter-data-redis</artifactId>-->
45+
<!-- </dependency>-->
46+
47+
<!-- json -->
48+
<dependency>
49+
<groupId>com.alibaba</groupId>
50+
<artifactId>fastjson</artifactId>
51+
<version>1.2.79</version>
52+
</dependency>
53+
54+
</dependencies>
55+
56+
<build>
57+
<plugins>
58+
<plugin>
59+
<groupId>org.springframework.boot</groupId>
60+
<artifactId>spring-boot-maven-plugin</artifactId>
61+
</plugin>
62+
</plugins>
63+
</build>
64+
65+
</project>
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
package com.yen.springChatRoom;
2+
3+
import org.springframework.boot.SpringApplication;
4+
import org.springframework.boot.autoconfigure.SpringBootApplication;
5+
6+
@SpringBootApplication
7+
public class SpringChatRoomApplication {
8+
9+
public static void main(String[] args) {
10+
11+
SpringApplication.run(SpringChatRoomApplication.class, args);
12+
}
13+
14+
}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
package com.yen.springChatRoom;
2+
3+
import org.junit.jupiter.api.Test;
4+
import org.springframework.boot.test.context.SpringBootTest;
5+
6+
@SpringBootTest
7+
class SpringChatRoomApplicationTests {
8+
9+
@Test
10+
void contextLoads() {
11+
}
12+
13+
}

0 commit comments

Comments
 (0)