タイマー機能の実行を追加します。

@Scheduled(クーロン= "0/5 * * *?*")

おすすめ

転載: www.cnblogs.com/xujuntao/p/11018508.html