| | |
| | | package com.xcong.excoin; |
| | | |
| | | import com.xcong.excoin.netty.ChatServer; |
| | | import com.xcong.excoin.netty.server.WebSocketServer; |
| | | import org.mybatis.spring.annotation.MapperScan; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.boot.ApplicationArguments; |
| | | import org.springframework.boot.ApplicationRunner; |
| | | import org.springframework.boot.CommandLineRunner; |
| | | import org.springframework.boot.SpringApplication; |
| | | import org.springframework.boot.autoconfigure.SpringBootApplication; |
| | | import org.springframework.scheduling.annotation.EnableAsync; |
| | |
| | | @EnableAsync |
| | | @SpringBootApplication |
| | | @MapperScan("com.xcong.excoin.modules.*.dao") |
| | | public class ExcoinApplication { |
| | | public class ExcoinApplication implements CommandLineRunner { |
| | | |
| | | @Autowired |
| | | private WebSocketServer webSocketServer; |
| | | |
| | | public static void main(String[] args) { |
| | | SpringApplication.run(ExcoinApplication.class, args); |
| | | } |
| | | |
| | | @Override |
| | | public void run(String... args) throws Exception { |
| | | // webSocketServer.start(); |
| | | } |
| | | } |