package com.sikey.wa04.api.websocket;

import com.sikey.wa04.business.infrastructure.configuration.WebSocketConfig;
import jakarta.annotation.Resource;
import jakarta.persistence.PrePersist;
import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.messaging.handler.annotation.Payload;
import org.springframework.scheduling.annotation.EnableScheduling;

/**
 * Websocket 启动类 <br/>
 * <br/>
 * 划分域：<strong>Websocket</strong> <br/><br/>
 * 主要实体：
 * <ul>
 *     <li>Connection (聚合)</li>
 *     <li>Group</li>
 *     <li>Message</li>
 *     <li>...</li>
 * </ul>
 */
@EnableScheduling
@EnableDiscoveryClient
@RefreshScope
@SpringBootApplication(scanBasePackages = {"com.sikey.wa04"})
public class WebsocketApplication {

    /**
     * Application entry point
     *
     * @param args Arguments
     */
    public static void main(String[] args) {
        SpringApplication.run(WebsocketApplication.class, args);
    }
}
