I wrote a demo to hack the code. And I found when Spring Boot choosed what classes to be loaded, it would use a configuration file 'META-INF/spring-autoconfigure-metadata.properties', but I didn't find the file in the Spring Boot source code. So how does this file be generated ? Thank you !

Comment From: snicoll

There is an annotation processor that generates that file based on conditions in the module.

If you have further question, please chat with the community on Gitter or ask on StackOverflow, as mentioned in the guidelines for contributing, we prefer to use GitHub issues only for bugs and enhancements.

Comment From: m4ra7h0n

I find it at org.springframework.boot:spring-boot-autoconfigure:xxx.jar