spring ApplicationContextAware接口

ApplicationContextAware 首先 ApllicationContextAware 解釋    應用上下文 感知 ApplicationContext 是spring 的核心:應用容器 不說了 ,上代碼   注意事項:   1 本類需要由spring容器管理   2  從容器獲取bean對象,需要是靜態方法      由此 ,我們可以得到spring容器中任何bean對象 查看源
相關文章
相關標籤/搜索