Blame view

src/main/java/com/huaheng/mobile/websocket/WebSocketConfig.java 441 Bytes
1
package com.huaheng.mobile.websocket;
2
3
4
5
6
7

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.socket.server.standard.ServerEndpointExporter;

/**
8
 * 配置websocket并开启
9
 */
周峰 authored
10
//@Configuration
11
public class WebSocketConfig {
周峰 authored
12
//    @Bean
13
    public ServerEndpointExporter serverEndpointExporter(){
14
15
        return new ServerEndpointExporter();
    }
16
17
}