package com.skr.mdm;

import com.skr.mdm.netty.WebsocketServer;
import lombok.extern.slf4j.Slf4j;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

/**
 * @author nfq
 */
//@SpringBootApplication
//@MapperScan("com.skr.mdm.dao")
public class MdmWebsocketApplication implements CommandLineRunner {

    @Autowired
    private WebsocketServer websocketServer;

    public static void main(String[] args) throws Exception {
        SpringApplication.run(MdmWebsocketApplication.class, args);
    }

    @Override
    public void run(String... args) throws Exception {
       websocketServer.run(8084);
    }
}
