Fix json in response

This commit is contained in:
2024-06-06 11:34:40 +02:00
parent d18f51ca6d
commit 6d01cfd280

View File

@@ -39,6 +39,11 @@ public class JsonConfig implements WebMvcConfigurer {
httpMessageConverter.setDefaultCharset(StandardCharsets.UTF_8);
httpMessageConverter.setObjectMapper(jacksonResponseObjectMapper());
int oldIndex = converters.indexOf(httpMessageConverter);
converters.remove(oldIndex);
converters.add(0, httpMessageConverter);
}
}