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

Popular posts from this blog

sql - invalid in the select list because it is not contained in either an aggregate function -

Angularjs unit testing - ng-disabled not working when adding text to textarea -

How to start daemon on android by adb -