Spring中@component的使用

Spring中@component的使用 @component是spring中的一個註解,它的作用就是實現bean的注入,@component取代。在探究@component前先了解一下註解?何爲註解?註解本質上就是一個類,開發中我們可以使用註解 取代 xml配置文件。 web開發,提供3個@Component註解衍生註解(功能一樣)取代 @Repository(「名稱」):dao層 @Servi
相關文章
相關標籤/搜索