Код: Выделить всё
@Bean
public Jackson2ObjectMapperBuilderCustomizer customJacksonConfig() {
return builder ->
builder.postConfigurer(
objectMapper ->
objectMapper
.getFactory()
.setStreamReadConstraints(
StreamReadConstraints.builder()
.maxStringLength(100 * 1024 * 1024)
.build()));
}
Подробнее здесь: https://stackoverflow.com/questions/798 ... ing-boot-4