| | |
| | | */ |
| | | package org.springblade; |
| | | |
| | | import com.alibaba.druid.spring.boot.autoconfigure.DruidDataSourceAutoConfigure; |
| | | import org.springblade.common.constant.CommonConstant; |
| | | import org.springblade.core.launch.BladeApplication; |
| | | import org.springblade.modules.webscoket.WebSocketServer; |
| | | import org.springframework.boot.CommandLineRunner; |
| | | import org.springframework.boot.autoconfigure.SpringBootApplication; |
| | | import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration; |
| | | import org.springframework.scheduling.annotation.EnableScheduling; |
| | | |
| | | /** |
| | |
| | | */ |
| | | @EnableScheduling |
| | | @SpringBootApplication |
| | | public class Application { |
| | | public class Application implements CommandLineRunner { |
| | | |
| | | 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(9034); |
| | | } |
| | | |
| | | } |
| | | |