ADD file via upload

master
moec42frf 2 years ago
parent ae789bd7b5
commit e50ec4d9ae

@ -0,0 +1,18 @@
package org.sang.service;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;
@Component
public class DataStatisticsComponent {
@Autowired
ArticleService articleService;
//每天执行一次统计PV
@Scheduled(cron = "1 0 0 * * ?")
public void pvStatisticsPerDay() {
articleService.pvStatisticsPerDay();
}
}
Loading…
Cancel
Save