add scannable option in @Component solve the problem like #29650

Comment From: bclozel

We've closed the related issue and we didn't agree on introducing a feature for this.

I'm declining this PR as a result. Next time, don't hesitate to ask us about enhancement proposals before spending time working on one.

Comment From: ShenFeng312

We've closed the related issue and we didn't agree on introducing a feature for this.

I'm declining this PR as a result. Next time, don't hesitate to ask us about enhancement proposals before spending time working on one.

thanks. can i modify the code inAnnotationTypeFilter to support attributes ?