Spring中@component的使用

Spring中@component的使用 @component是spring中的一个注解,它的作用就是实现bean的注入,@component取代。在探究@component前先了解一下注解?何为注解?注解本质上就是一个类,开发中我们可以使用注解 取代 xml配置文件。 web开发,提供3个@Component注解衍生注解(功能一样)取代 @Repository(“名称”):dao层 @Servi
相关文章
相关标签/搜索