add spring
This commit is contained in:
@ -3,7 +3,12 @@ package fr.tetelie.crawler;
|
||||
import org.jsoup.Jsoup;
|
||||
import org.jsoup.nodes.Document;
|
||||
import org.jsoup.nodes.Element;
|
||||
import org.springframework.boot.SpringApplication;
|
||||
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
||||
import org.springframework.scheduling.annotation.EnableScheduling;
|
||||
|
||||
@SpringBootApplication
|
||||
@EnableScheduling
|
||||
public class Crawler {
|
||||
|
||||
|
||||
@ -19,6 +24,8 @@ public class Crawler {
|
||||
// Si pas de connexion à la base de donnée on s'arrête ici
|
||||
if(!isConnected){return;};
|
||||
|
||||
SpringApplication.run(Crawler.class, args);
|
||||
|
||||
|
||||
|
||||
// On request les prix de tous les produits et on les inject dans la bdd
|
||||
|
||||
Reference in New Issue
Block a user