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

Fix #2133 Spring boot starter breaks configuration classes #79

Merged
merged 3 commits into from
Nov 21, 2024

Conversation

qing-wq
Copy link
Contributor

@qing-wq qing-wq commented Nov 20, 2024

Fixes langchain4j/langchain4j#2133

The problem is beanfactory.getBeanswithanNotation(). It creates an instance of the Bean in advance.

beanFactory.getBeansWithAnnotation(ComponentScan.class).forEach((beanName, instance) -> {

@langchain4j
Copy link
Collaborator

@qing-wq thanks a lot!
Could you please add a test that will prove that the bug was fixed? 🙏

@qing-wq qing-wq changed the title fix #2133 Spring boot starter breaks configuration classes Fix #2133 Spring boot starter breaks configuration classes Nov 20, 2024
@qing-wq
Copy link
Contributor Author

qing-wq commented Nov 21, 2024

@langchain4j certainly! I have completed the unit test

Copy link
Collaborator

@langchain4j langchain4j left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@qing-wq thanks a lot!

@langchain4j langchain4j merged commit 15f4c95 into langchain4j:main Nov 21, 2024
1 of 5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] 0.36 - Spring boot starter breaks configuration classes
2 participants