Component Scan is important concept when we want to create Bean. Currently we know what, for the class, we want to create Bean from it, we need to add @Component. @Component @Scope(ConfigurableBeanFactory.SCOPE_SINGLETON) public class ComponentPerson…
1.<context:annotation-config/> xsd中说明: <xsd:element name="annotation-config"> <xsd:annotation> <xsd:documentation> <![CDATA[ Activates various annotations to be detected in bean classes: Spring's @Required and @Autowir…
原文地址:http://techidiocy.com/annotation-config-vs-component-scan-spring-core/ <context:annotation-config> and <context:component-scan> are two of the most basic concepts available in the Spring Core introduced in Spring 3 that every Spring user…