| | |
| | | import org.springblade.modules.webscoket.WebSocketServer; |
| | | import org.springframework.boot.CommandLineRunner; |
| | | import org.springframework.boot.autoconfigure.SpringBootApplication; |
| | | import org.springframework.scheduling.annotation.EnableAsync; |
| | | import org.springframework.scheduling.annotation.EnableScheduling; |
| | | |
| | | /** |
| | |
| | | */ |
| | | @EnableScheduling |
| | | @SpringBootApplication |
| | | public class Application implements CommandLineRunner { |
| | | @EnableAsync |
| | | //public class Application implements CommandLineRunner { |
| | | public class Application{ |
| | | |
| | | public static void main(String[] args) { |
| | | BladeApplication.run(CommonConstant.APPLICATION_NAME, Application.class, args); |
| | | } |
| | | |
| | | @Override |
| | | public void run(String... args) throws Exception { |
| | | WebSocketServer webSocketServer= new WebSocketServer(2086); |
| | | } |
| | | // @Override |
| | | // public void run(String... args) throws Exception { |
| | | // WebSocketServer webSocketServer= new WebSocketServer(2086); |
| | | // } |
| | | |
| | | } |
| | | |