Spring Framework 面试题

面试题:
什么是Spring Framework?
Spring 是让你更容易开发Java 企业应用的一种框架,它提供了任何你想要拥抱在企业环境的java 语言上面的东西。并且支持类似于JVM上面的可选语言,比如Groovy 和Kotiln.同时也提供一些弹性,根据你软件的需要为你创造出不同的软件架构.

Spring Framework 面试题
spring-core 的资源管理:比如Resources 接口, 用来作为资源管理,看资源是否存在。
泛型处理:GenericTypeResource.

spring-beans: 依赖注入:Autowired. 依赖查找: BeanFactory
BeanFactory
Spring Framework 面试题
Spring Framework 面试题

getBean(String name):通过名称方式查找Bean
getBean(Class requiredType): 通过类来查找Bean

spring-context:事件驱动:ApplicationEvent;
注解驱动: 比如@Component:让标注该注释的类变为一个Spring Bean,然后通过@ComponentScan 来扫描,进而注入Spring IOC容器中