Closed
Description
Gabriele Del Prete opened SPR-7748 and commented
If I use the packagesToScan property of AnnotationSessionFactoryBean, classes are scanned for annotations, but the package itself is not scanned (i.e. package-info.java file is not considered).
I guess it would be better to include the package-info.java file too as the "packagesToScan" name really makes one think that it will scan the packages as a whole.
Note also the contrast with the "annotatedPackages" and "annotatedClasses" name, where it's clear that one will only scan the package annotations and the other only the package classes annotation.
Affects: 3.0.4
Issue Links:
- In AnnotationSessionFactoryBean, be able to specify annotatedPackages and packagesToScan in one property [SPR-10288] #14922 In AnnotationSessionFactoryBean, be able to specify annotatedPackages and packagesToScan in one property
Referenced from: commits 5334ac5