package edu.neusoft.project.util;

import edu.neusoft.project.model.service.PersonService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

@Component
public class TimeTask {

    @Autowired
    private PersonService service;




    @Scheduled(cron = "0 0 5 * * ?")
    public void resetLineCount(){
        service.resetLineCount();
    }


}
