Why @Configuration + @Bean Overrides @Component in Spring Boot: Deep Dive and Version Differences
A detailed analysis shows that when a class is annotated with both @Configuration/@Bean and @Component, Spring creates only one bean—the one defined by @Configuration/@Bean—overriding the @Component definition, and explains how this behavior changed across Spring and Spring Boot versions.
