Spring Boot啓動以後,默認加載CommandLineRunner接口和註解兩種方式PostContruct

1:官方doc:     Interface used to indicate that a bean should run when it is contained within a SpringApplication. Multiple CommandLineRunner beans can be defined within the same application context and
相關文章
相關標籤/搜索