Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

@Component is not worked when exists spring.components #36361

Closed
Cubeatz opened this issue Jul 12, 2023 · 1 comment
Closed

@Component is not worked when exists spring.components #36361

Cubeatz opened this issue Jul 12, 2023 · 1 comment
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

Comments

@Cubeatz
Copy link

Cubeatz commented Jul 12, 2023

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!

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Jul 12, 2023
@wilkinsona
Copy link
Member

The indexer is a Spring Framework feature. The behavior that you have described is a known limitation and is one of the reasons for its deprecation.

@wilkinsona wilkinsona closed this as not planned Won't fix, can't repro, duplicate, stale Jul 12, 2023
@wilkinsona wilkinsona added status: invalid An issue that we don't feel is valid for: external-project For an external project and not something we can fix and removed status: waiting-for-triage An issue we've not yet triaged labels Jul 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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
Projects
None yet
Development

No branches or pull requests

3 participants