最近在看源码过程中,发现在根据spring实现中,很多都使用了@Import注解实现动态bean的注入实现,因此自己总结了一些@Import使用方式,便于对Spring框架的细节的理解。 @Import 在学习@Import注解时,我们首先看下spring中对该注解的描述信息: /** * Indicates one or more <em>component classes</em> to import — typically * {@link Configuratio…
最近在看源码过程中,发现在根据spring实现中,很多都使用了@Import注解实现动态bean的注入实现,因此自己总结了一些@Import使用方式,便于对Spring框架的细节的理解。 @Import 在学习@Import注解时,我们首先看下spring中对该注解的描述信息: /** * Indicates one or more <em>component classes</em> to import — typically * {@link Configuratio…