Ways of scanning components

Report a typo

What is the difference between the following @ComponentScan annotations?

1. @ComponentScan(basePackages = "com.example")
2. @ComponentScan("com.example")
Select one option from the list
___

Create a free account to access the full topic