Document annotation-config / component-scan tip

Document that the <context:annotation-config> element is usually
not required when using <context:component-scan>.

Issue: SPR-9808
master
Phillip Webb 12 years ago
parent a263fd343d
commit 6a6b441ffd
  1. 7
      src/reference/docbook/beans-classpath-scanning.xml

@ -121,6 +121,13 @@ public class JpaMovieFinder implements MovieFinder {
&lt;/beans&gt;</programlisting>
<tip>
<para>The use of <literal>&lt;context:component-scan&gt;</literal> implicitly
enables the functionality of <literal>&lt;context:annotation-config&gt;</literal>.
There is usually no need to include the <literal>&lt;context:annotation-config&gt;</literal>
element when using <literal>&lt;context:component-scan&gt;</literal>.
</para>
</tip>
<note>
<para>The scanning of classpath packages requires the presence of
corresponding directory entries in the classpath. When you build JARs

Loading…
Cancel
Save