SpringBoot定時任務-Only no-arg methods may be annotated with @Scheduled

啓動SpringBoot項目時,出現錯誤:Only no-arg methods may be annotated with @Scheduled

說明你使用@Scheduled註解的方法有參數。

@Scheduled註解的方法要求不能有參數。

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章