
Spring原理
在Spring IOC和DI阶段,我们学习了Spring是如何帮我们管理对象的。1.通过@Controller,@Service,@Mapper,@Configuration,@Component ,@Configuration,@Bean等来声明Bean对象。2.通过ApplicationContext或者BeanFactory来获取对象。3.通过@Autowired,Setter方法或者构造方法等来为应用程序注入所依赖的Bean对象。1.通过Bean声明bean,把bean存在Spring容器中





















