每日一点爬取新闻数据

This commit is contained in:
dengli
2024-01-03 18:35:50 +08:00
parent cab41175ea
commit 4726a5d5d2

View File

@@ -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="));