Spring學習 之 註解筆記

目錄java 一. 註解學習spring 01. @PostConstruct註解學習緩存 一. 註解學習 01. @PostConstruct註解學習 @PostContruct是spring框架的註解,在方法上加該註解會在項目啓動的時候執行該方法,也能夠理解爲在spring容器初始化的時候執行該方法。框架 /** * 功能說明:啓動項目 將字典放入緩存中 */ @PostConstru
相關文章
相關標籤/搜索