使用Spring @Scheduled註解實現定時任務

首先要配置我們的spring.xml xmlns:task=「http://www.springframework.org/schema/task」 然後xsi:schemaLocation多加下面的內容 http://www.springframework.org/schema/task http://www.springframework.org/schema/task/spring-task
相關文章
相關標籤/搜索