context:component-scan 与context:annotation-config

The use of <context:component-scan> implicitly enables the functionality of <context:annotation-config>. There is usually no need to include the<context:annotation-config> element when using <context:component-scan>.


你可能感兴趣的:(context:component-scan 与context:annotation-config)