This repository was archived by the owner on Jun 21, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +14
-0
lines changed
services-gateway-client-transport
src/main/java/io/scalecube/services/gateway/transport/websocket
src/main/java/io/scalecube/services/gateway/ws Expand file tree Collapse file tree 4 files changed +14
-0
lines changed Original file line number Diff line number Diff line change 2020 <artifactId >scalecube-services</artifactId >
2121 </dependency >
2222
23+ <dependency >
24+ <groupId >com.fasterxml.jackson.datatype</groupId >
25+ <artifactId >jackson-datatype-jsr310</artifactId >
26+ </dependency >
2327 <dependency >
2428 <groupId >com.fasterxml.jackson.core</groupId >
2529 <artifactId >jackson-core</artifactId >
Original file line number Diff line number Diff line change 1313import com .fasterxml .jackson .databind .MappingJsonFactory ;
1414import com .fasterxml .jackson .databind .ObjectMapper ;
1515import com .fasterxml .jackson .databind .SerializationFeature ;
16+ import com .fasterxml .jackson .datatype .jsr310 .JavaTimeModule ;
1617import io .netty .buffer .ByteBuf ;
1718import io .netty .buffer .ByteBufAllocator ;
1819import io .netty .buffer .ByteBufInputStream ;
@@ -162,6 +163,8 @@ private static ObjectMapper objectMapper() {
162163 mapper .setVisibility (PropertyAccessor .ALL , JsonAutoDetect .Visibility .ANY );
163164 mapper .setSerializationInclusion (JsonInclude .Include .NON_NULL );
164165 mapper .configure (SerializationFeature .WRITE_ENUMS_USING_TO_STRING , true );
166+ mapper .registerModule (new JavaTimeModule ());
167+ mapper .findAndRegisterModules ();
165168 return mapper ;
166169 }
167170}
Original file line number Diff line number Diff line change 2929 <artifactId >rsocket-transport-netty</artifactId >
3030 </dependency >
3131
32+ <dependency >
33+ <groupId >com.fasterxml.jackson.datatype</groupId >
34+ <artifactId >jackson-datatype-jsr310</artifactId >
35+ </dependency >
3236 <dependency >
3337 <groupId >com.fasterxml.jackson.core</groupId >
3438 <artifactId >jackson-core</artifactId >
Original file line number Diff line number Diff line change 1313import com .fasterxml .jackson .databind .MappingJsonFactory ;
1414import com .fasterxml .jackson .databind .ObjectMapper ;
1515import com .fasterxml .jackson .databind .SerializationFeature ;
16+ import com .fasterxml .jackson .datatype .jsr310 .JavaTimeModule ;
1617import io .netty .buffer .ByteBuf ;
1718import io .netty .buffer .ByteBufAllocator ;
1819import io .netty .buffer .ByteBufInputStream ;
@@ -166,6 +167,8 @@ private static ObjectMapper objectMapper() {
166167 mapper .setVisibility (PropertyAccessor .ALL , JsonAutoDetect .Visibility .ANY );
167168 mapper .setSerializationInclusion (JsonInclude .Include .NON_NULL );
168169 mapper .configure (SerializationFeature .WRITE_ENUMS_USING_TO_STRING , true );
170+ mapper .registerModule (new JavaTimeModule ());
171+ mapper .findAndRegisterModules ();
169172 return mapper ;
170173 }
171174}
You can’t perform that action at this time.
0 commit comments