Blame view

src/main/java/com/huaheng/mobile/websocket/WebSocketConfig.java 499 Bytes
1
package com.huaheng.mobile.websocket;
2
3
4

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
5
import org.springframework.context.annotation.Lazy;
6
7
8
import org.springframework.web.socket.server.standard.ServerEndpointExporter;

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