java - Non recursive scan for packages in Spring -
apparently, annotationconfigapplicationcontext#scan() scans packages recursively.
i not sure of it, 1 of @component
classes apparently loaded without being explicitly mentioned anywhere except being inside of subpackage of mentioned package.
so first question: true spring scans package recursively?
the second question, if true, how disable this?
as noted in spring @component
api
indicates annotated class "component". such classes considered candidates auto-detection when using annotation-based configuration , classpath scanning.
about scanning and/or annotating configuration & settings check this answer, can't explain better
Comments
Post a Comment