【面試】【Spring常見問題總結】【03】

【常見面試問題總結目錄>>>】 2一、自動檢測Bean 爲了配置自動檢測,須要使用<context:component-scan>元素。默認狀況下,<context:component-scan>使用構造型注所標註類。這些特殊的註解以下面試 @Component——通用構造型註解,標識該類爲Spring組件spring @Controller——標識將該類定義爲SpringMVC controll
相關文章
相關標籤/搜索