package org.example;
|
|
|
import org.springframework.boot.SpringApplication;
|
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
import org.springframework.scheduling.annotation.EnableScheduling;
|
import org.springframework.web.socket.config.annotation.EnableWebSocket;
|
|
/**
|
* @ClassDescription: websocket服务端
|
* EnableWebSocket注解用于开启websocket服务
|
* @JdkVersion: 1.8
|
* @Created: 2023/8/31 14:53
|
*/
|
@EnableScheduling
|
@EnableWebSocket
|
@SpringBootApplication
|
public class WsServerApplication {
|
public static void main(String[] args) {
|
SpringApplication.run(WsServerApplication.class, args);
|
}
|
}
|