You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I don't think this is a supported pattern (ie. calling createBean and then registerSingleton). Changing this behaviour my break existing users as well.
Expected Behavior
When a bean is created manually then registed via regiserSingleton, if it has a method annoted with
@PostConstruct
this method must be called once.Actual Behaviour
Take as example the following bean:
When constructed then registered programmatically like that:
The postconstruct method is called twice.
Steps To Reproduce
double-postconstruct.zip
Environment Information
Example Application
No response
Version
4.7.6
The text was updated successfully, but these errors were encountered: