mirror of
https://github.com/spring-projects/spring-framework
synced 2026-06-08 17:33:33 +00:00
845f4f2bb7
Prior to this commit, @ComponentScan already had a value/basePackages alias pair; however, the semantics were not properly enforced. This commit addresses this issue by refactoring ComponentScanAnnotationParser to ensure that it is not possible to declare both of the aliased attributes. In addition, the 'value' and 'basePackages' attributes are now annotated with @AliasFor in order to make the semantics clearer. Issue: SPR-11393