當實現ApplicationListener接口的監聽器

添加上以下這個類,會使監聽器中onApplicationEvent()方法,以異步的方法執行 package xxx.config; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import org.springf
相關文章
相關標籤/搜索