O'Reilly logo
  • Yijun Yuan thinks this is interesting:

@ComponentScan instructs Spring Boot to detect WebConfiguration as a @Configuration class and add its definitions to the context

From

Cover of Spring Boot Cookbook

Note

So configurations do not have to construct a tree, but requires all entry methods to scan. Entry method include tests.