1 从容器中拿对象:
getBean(Class):按照类型拿bean;
getBean(String):按照名字拿bean;
getBean(String,Class):按照名字和类型拿;(推荐)
2 DI依赖注入
3 spring加载过程
标签:String,spring,getBean,bean,Class,按照 From: https://www.cnblogs.com/ladeng19/p/17231735.html
1 从容器中拿对象:
getBean(Class):按照类型拿bean;
getBean(String):按照名字拿bean;
getBean(String,Class):按照名字和类型拿;(推荐)
2 DI依赖注入
3 spring加载过程
标签:String,spring,getBean,bean,Class,按照 From: https://www.cnblogs.com/ladeng19/p/17231735.html