| | |
| | | import com.alibaba.druid.spring.boot.autoconfigure.DruidDataSourceAutoConfigure; |
| | | import org.springblade.common.constant.CommonConstant; |
| | | import org.springblade.core.launch.BladeApplication; |
| | | import org.springblade.modules.nettyServer.Server; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.boot.CommandLineRunner; |
| | | import org.springframework.boot.autoconfigure.SpringBootApplication; |
| | | import org.springframework.scheduling.annotation.EnableScheduling; |
| | | |
| | |
| | | */ |
| | | @EnableScheduling |
| | | @SpringBootApplication(exclude = DruidDataSourceAutoConfigure.class) |
| | | 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 { |
| | | Server server=new Server(8088); |
| | | } |
| | | } |
| | | |