|
|
|
@ -8,7 +8,6 @@ import org.springframework.boot.builder.SpringApplicationBuilder; |
|
|
|
|
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer; |
|
|
|
|
import org.springframework.context.ConfigurableApplicationContext; |
|
|
|
|
import org.springframework.core.env.Environment; |
|
|
|
|
import org.springframework.scheduling.annotation.EnableScheduling; |
|
|
|
|
|
|
|
|
|
import java.io.IOException; |
|
|
|
|
import java.net.InetAddress; |
|
|
|
@ -19,8 +18,8 @@ import java.net.UnknownHostException; |
|
|
|
|
*/ |
|
|
|
|
@Slf4j |
|
|
|
|
@SpringBootApplication |
|
|
|
|
@EnableScheduling |
|
|
|
|
public class JeecgSystemApplication extends SpringBootServletInitializer /*implements CommandLineRunner*/ { |
|
|
|
|
//@EnableScheduling
|
|
|
|
|
public class JeecgSystemApplication extends SpringBootServletInitializer { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//dsadsadsadasd
|
|
|
|
@ -64,18 +63,5 @@ public class JeecgSystemApplication extends SpringBootServletInitializer /*imple |
|
|
|
|
}finally { |
|
|
|
|
serverSocket.close(); |
|
|
|
|
}*/ |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// @Autowired
|
|
|
|
|
// private Environment environment;
|
|
|
|
|
|
|
|
|
|
// @Autowired
|
|
|
|
|
// private NewsWebMagicTask newWebMagicTask;
|
|
|
|
|
//
|
|
|
|
|
// @Override
|
|
|
|
|
// public void run(String... strings) throws Exception {
|
|
|
|
|
// // 爬取数据
|
|
|
|
|
//// newWebMagicTask.crawl();
|
|
|
|
|
// }
|
|
|
|
|
} |
|
|
|
|