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
This commit is contained in:
@@ -121,6 +121,13 @@ public class JpaMovieFinder implements MovieFinder {
|
||||
|
||||
</beans></programlisting>
|
||||
|
||||
<tip>
|
||||
<para>The use of <literal><context:component-scan></literal> implicitly
|
||||
enables the functionality of <literal><context:annotation-config></literal>.
|
||||
There is usually no need to include the <literal><context:annotation-config></literal>
|
||||
element when using <literal><context:component-scan></literal>.
|
||||
</para>
|
||||
</tip>
|
||||
<note>
|
||||
<para>The scanning of classpath packages requires the presence of
|
||||
corresponding directory entries in the classpath. When you build JARs
|
||||
|
||||
Reference in New Issue
Block a user