2023-11-26版本
This commit is contained in:
parent
b4155bec4f
commit
199ef4f7ee
|
@ -22,7 +22,7 @@ public class Test01 implements CommandLineRunner {
|
||||||
}
|
}
|
||||||
sqlSession.close();
|
sqlSession.close();
|
||||||
System.out.println("sleep");
|
System.out.println("sleep");
|
||||||
TimeUnit.HOURS.sleep(1);
|
TimeUnit.MINUTES.sleep(10);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -64,7 +64,7 @@ public class WebSocketServer {
|
||||||
/*
|
/*
|
||||||
* 发消息给客户端
|
* 发消息给客户端
|
||||||
* */
|
* */
|
||||||
public void sendAllSession(List<Message> message) throws IOException {
|
public void sendAllSession(List<Message> message){
|
||||||
|
|
||||||
try {
|
try {
|
||||||
for (Session session : sessionList) {
|
for (Session session : sessionList) {
|
||||||
|
|
Loading…
Reference in New Issue