springboot websocketserver
时间: 2023-09-14 07:04:35 浏览: 87
在Spring Boot中实现WebSocket服务器,您需要引入相应的Maven依赖。您可以在pom.xml文件中添加以下依赖项:
```
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-websocket</artifactId>
</dependency>
```
这将引入与WebSocket相关的Spring Boot起步依赖项。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *2* *3* [springboot2.x 建立websocket服务端和客户端(前后端)使用,支持socket集群](https://blog.csdn.net/Qensq/article/details/125722899)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 100%"]
[ .reference_list ]
阅读全文