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 20
20
<artifactId >scalecube-services</artifactId >
21
21
</dependency >
22
22
23
+ <dependency >
24
+ <groupId >com.fasterxml.jackson.datatype</groupId >
25
+ <artifactId >jackson-datatype-jsr310</artifactId >
26
+ </dependency >
23
27
<dependency >
24
28
<groupId >com.fasterxml.jackson.core</groupId >
25
29
<artifactId >jackson-core</artifactId >
Original file line number Diff line number Diff line change 13
13
import com .fasterxml .jackson .databind .MappingJsonFactory ;
14
14
import com .fasterxml .jackson .databind .ObjectMapper ;
15
15
import com .fasterxml .jackson .databind .SerializationFeature ;
16
+ import com .fasterxml .jackson .datatype .jsr310 .JavaTimeModule ;
16
17
import io .netty .buffer .ByteBuf ;
17
18
import io .netty .buffer .ByteBufAllocator ;
18
19
import io .netty .buffer .ByteBufInputStream ;
@@ -162,6 +163,8 @@ private static ObjectMapper objectMapper() {
162
163
mapper .setVisibility (PropertyAccessor .ALL , JsonAutoDetect .Visibility .ANY );
163
164
mapper .setSerializationInclusion (JsonInclude .Include .NON_NULL );
164
165
mapper .configure (SerializationFeature .WRITE_ENUMS_USING_TO_STRING , true );
166
+ mapper .registerModule (new JavaTimeModule ());
167
+ mapper .findAndRegisterModules ();
165
168
return mapper ;
166
169
}
167
170
}
Original file line number Diff line number Diff line change 29
29
<artifactId >rsocket-transport-netty</artifactId >
30
30
</dependency >
31
31
32
+ <dependency >
33
+ <groupId >com.fasterxml.jackson.datatype</groupId >
34
+ <artifactId >jackson-datatype-jsr310</artifactId >
35
+ </dependency >
32
36
<dependency >
33
37
<groupId >com.fasterxml.jackson.core</groupId >
34
38
<artifactId >jackson-core</artifactId >
Original file line number Diff line number Diff line change 13
13
import com .fasterxml .jackson .databind .MappingJsonFactory ;
14
14
import com .fasterxml .jackson .databind .ObjectMapper ;
15
15
import com .fasterxml .jackson .databind .SerializationFeature ;
16
+ import com .fasterxml .jackson .datatype .jsr310 .JavaTimeModule ;
16
17
import io .netty .buffer .ByteBuf ;
17
18
import io .netty .buffer .ByteBufAllocator ;
18
19
import io .netty .buffer .ByteBufInputStream ;
@@ -166,6 +167,8 @@ private static ObjectMapper objectMapper() {
166
167
mapper .setVisibility (PropertyAccessor .ALL , JsonAutoDetect .Visibility .ANY );
167
168
mapper .setSerializationInclusion (JsonInclude .Include .NON_NULL );
168
169
mapper .configure (SerializationFeature .WRITE_ENUMS_USING_TO_STRING , true );
170
+ mapper .registerModule (new JavaTimeModule ());
171
+ mapper .findAndRegisterModules ();
169
172
return mapper ;
170
173
}
171
174
}
You can’t perform that action at this time.
0 commit comments