Skip to content
Branch: master
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
websocket
README.md

README.md

SpringBoot开发WebSocket应用

  • IDEA中选择[Project Structure]的Project子菜单, 进行如下操作导入:
    绿色加号 -> Import Module -> 选择build.gradle -> OK -> ...
  • 启动服务器后直接本地打开resources下的HTML文件即可

com.skypyb.websocket 包下为传统 @ServerEndpoint 注解方式的 WebSocket 开发演示
com.skypyb.springboot_websocket 包下为集成 spring-boot-starter-websocket 的 WebSocket 开发演示

You can’t perform that action at this time.