Websocket

    在使用 websocket 之前,需要添加如下配置:

    WebsocketDemo 的代码如下:

    我们还需要写一个 Controller,来渲染 html 页面。