Skip to content

Commit 04a1361

Browse files
changed checkstyle to JacksonConfig.java
1 parent 58c52b8 commit 04a1361

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/main/java/hexlet/code/config/JacksonConfig.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,17 @@
1111

1212
@Configuration
1313
public class JacksonConfig {
14+
1415
@Bean
1516
Jackson2ObjectMapperBuilder objectMapperBuilder() {
1617
var builder = new Jackson2ObjectMapperBuilder();
18+
1719
builder.serializationInclusion(JsonInclude.Include.NON_NULL)
1820
.modulesToInstall(new JsonNullableModule());
21+
1922
DateTimeFormatter formatter = DateTimeFormatter.ofPattern("yyyy-MM-dd");
2023
builder.serializers(new LocalDateSerializer(formatter));
24+
2125
return builder;
2226
}
2327
}

0 commit comments

Comments
 (0)