springboot啓動前執行方法的幾種方式

第一種  @PostConstruct註解 @Configuration public class Test1 { @Autowired private Environment environment; @PostConstruct public void test(){ String property = environment.get
相關文章
相關標籤/搜索