@Component is not worked when exists spring.components #36361
Labels
for: external-project
For an external project and not something we can fix
status: invalid
An issue that we don't feel is valid
Hello.Today we introduced a third-party jar into my project.Unfortunately, our project was not worked.
When we look at code ,
@Component
and spring.components cannot both exist simultaneously, why is it designed this?org.springframework.context.annotation.ClassPathScanningCandidateComponentProvider#addCandidateComponentsFromIndex
I attached a sample project
demo3.zip
https://github.com/Cubeatz/springboot-components-test
spring-boot-version:2.7.13
Thanks!
The text was updated successfully, but these errors were encountered: