Created
September 13, 2023 12:57
-
-
Save AnarCom/87bc5322bdd4e754d313bd93ce14c68b to your computer and use it in GitHub Desktop.
Hibernate + jackson + json problem (no default constructor)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Configuration | |
class HibernatePropertiesChanger( | |
val objectMapper: ObjectMapper | |
) { | |
@Bean | |
fun hibernatesPropertiesCustomizer(): HibernatePropertiesCustomizer { | |
return HibernatePropertiesCustomizer { | |
it[AvailableSettings.JSON_FORMAT_MAPPER] = JacksonJsonFormatMapper(objectMapper) | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment