-
Notifications
You must be signed in to change notification settings - Fork 38.5k
Performance Degradation in getBean method after upgrade #22537
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
Comments
Could be a duplicate of #22425. |
Programmatically creating an autowired instance that way works in principle. However, if you want post-processors (including annotation-driven injection) to work, you should rather use the That said, any details on the performance regression in your scenario? I assume it is about |
Thank you for the response. Both getBean(Class) & getBean(String) methods are showing performance degradations. We badly need a work around for this issue, as it is taking more than 3 min during initialization. |
AutowireCapableBeanFactory.createBean(clazz) also did not give us any benefit , it is taking > 3 min. |
@Srikalpana Could you provide us a repro project or even a private access to the project sources in order to allow us to analyze what's going on? |
Closing due to the lack of reproducibility and the EOL of the 4.3.x line. To be reopened or followed up if concrete suggestions for a refinement come in. |
Uh oh!
There was an error while loading. Please reload this page.
Hi Team,
We have a requirement where we generate java classes dynamically and register them using Spring
registerBean
. When we upgraded Spring framework, 4.2.3 to 4.3.18, there was a severe performance degradation while retrieving the registered bean.To fix the issue, we are planning to use the following code instead of using
getBean
method. My question is: does the below API provide same initialization (like autowiring / pre & post processing capacity) or not? Will there be any repercussion with this API?The text was updated successfully, but these errors were encountered: