每日一点爬取新闻数据
This commit is contained in:
@@ -107,8 +107,7 @@ public class InvestingTask {
|
||||
}
|
||||
|
||||
/*新闻接口*/
|
||||
//@Scheduled(cron = "0 0 1 * * ?")
|
||||
@Scheduled(cron = "*/10 * * * * ?")
|
||||
@Scheduled(cron = "0 0 1 * * ?")
|
||||
public void saveStockNews() {
|
||||
String news = stockService.getNews();
|
||||
List<String> newsList = Arrays.asList(news.split("<a href="));
|
||||
|
||||
Reference in New Issue
Block a user