I and my friend were discussed about @ComponentScan and @Import. Which one is better?
We have 2 different ideas.
@ComponentScan: Easy to use, import all beans from the component scan.@Import: You need to know what component you want to use, no need to scan all.
How about your idea? Which one is better for you to use?
Thanks!