提交 | 用户 | 时间 | ||
0ca254 | 1 | package com.jcdm.framework.websocket; |
A | 2 | |
3 | import org.springframework.context.annotation.Bean; | |
4 | import org.springframework.context.annotation.Configuration; | |
5 | import org.springframework.web.socket.server.standard.ServerEndpointExporter; | |
6 | ||
7 | /** | |
8 | * websocket 配置 | |
9 | * | |
10 | * @author ruoyi | |
11 | */ | |
12 | @Configuration | |
13 | public class WebSocketConfig | |
14 | { | |
15 | @Bean | |
16 | public ServerEndpointExporter serverEndpointExporter() | |
17 | { | |
18 | return new ServerEndpointExporter(); | |
19 | } | |
20 | } |