-
Notifications
You must be signed in to change notification settings - Fork 0
/
JohnnyScrape.java
35 lines (25 loc) · 930 Bytes
/
JohnnyScrape.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
package johnnyscrape;
import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.Bean;
/**
* Created by johnminchuk on 2/20/17.
*/
@SpringBootApplication
public class JohnnyScrape {
public static void main(String[] args) {
SpringApplication.run(JohnnyScrape.class, args);
}
@Bean
public CommandLineRunner commandLineRunner(ApplicationContext ctx) throws Exception {
//GetWebsiteB getWebsiteB = ctx.getBean(GetWebsiteB.class);
//getWebsiteB.gatherLinks();
//getWebsiteB.downloadLinks();
GetWebsiteA getWebsiteA = ctx.getBean(GetWebsiteA.class);
//getWebsiteA.gatherLinks();
//getWebsiteA.downloadLinks();
return null;
}
}