Spring Boot 2 -自定義啓動運行邏輯

咱們有時候會遇到這種需求,項目啓動後立馬執行一些邏輯。好比緩存預熱,或者上線後的廣播之類等等。java CommandLineRunner 接口 package org.springframework.boot;web import org.springframework.core.Ordered; import org.springframework.core.annotation.Order;
相關文章
相關標籤/搜索