package com.zhentao;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;

@SpringBootApplication(exclude = {
    org.springframework.boot.autoconfigure.amqp.RabbitAutoConfiguration.class
})
@ComponentScan(basePackages = {
    "com.zhentao.config",
    "com.zhentao.controller",
    "com.zhentao.service",
    "com.zhentao.handler",
    "com.zhentao.utils"
})
@MapperScan({"com.zhentao.repository", "com.zhentao.mapper"})
public class WebSocketApplication {
    public static void main(String[] args) {
        SpringApplication.run(WebSocketApplication.class, args);
        System.out.println("WebSocket聊天服务启动成功！");
        System.out.println("WebSocket连接地址: ws://localhost:1004/ws/chat?userId={userId}");
    }
}
