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
Describe the bug
A newly created ModelConverter is being registered in duplicate when used with Spring Boot DevTools, due to the class loader being different.
To Reproduce
Steps to reproduce the behavior:
Create a Spring Boot application and include Spring Boot DevTools.
Add a new ModelConverter and annotate it with @Component
Expected behavior
The ModelConverter should be registered only once but every time the devtool restart the app, a new OwnConverter is added to the list of converters.
Additional context
I think the issue might comes from the following line where the comparaison is done through reference equality. ModelConverterRegistrar.java#L102
The text was updated successfully, but these errors were encountered:
Hello,
I've recently encountered a new bug.
Issue Description:
Describe the bug
A newly created
ModelConverter
is being registered in duplicate when used with Spring Boot DevTools, due to the class loader being different.To Reproduce
Steps to reproduce the behavior:
ModelConverter
and annotate it with@Component
Expected behavior
The
ModelConverter
should be registered only once but every time the devtool restart the app, a newOwnConverter
is added to the list of converters.Additional context
I think the issue might comes from the following line where the comparaison is done through reference equality.
ModelConverterRegistrar.java#L102
The text was updated successfully, but these errors were encountered: