#component-scan
Posts
-
Digging into Spring's Source 8: How @Configuration and @ComponentScan Become Blueprints
How a configuration class (@Configuration), its @Bean methods, and the @Component classes found by @ComponentScan turn into bean blueprints (BeanDefinition), followed step by step for someone new to Spring. How ConfigurationClassPostProcessor reads blueprints to add more blueprints, how component scanning reads class files without loading them, and why a @Configuration class is wrapped with CGLIB so that calling a @Bean method twice still gives you the same object — all checked against the real source and runnable examples.