Spring mvc 自項目啓動開始定時執行一個JAVA函數

第一步:在類上加組件註解html import org.springframework.stereotype.Component; @Component public class ScanZipTimingTask{ public void scanZipAndOperator() throws Exception{} } 第二步:添加spring 配置文件task.xml <?
相關文章
相關標籤/搜索