浅谈Spring IOC注解
Spring IOC 容器管理所有注入进Spring中实例化的对象。
注入Spring容器的注解:
@Service、@Component、@Controller、@Configration、@Repository
使用Spring中的对象注解:
@Autowired、@Resource (by type、by name)
Spring IOC 容器管理所有注入进Spring中实例化的对象。
注入Spring容器的注解:
@Service、@Component、@Controller、@Configration、@Repository
使用Spring中的对象注解:
@Autowired、@Resource (by type、by name)