File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed
main/java/org/springframework/graphql/client
test/java/org/springframework/graphql/server/webflux Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ description = "Spring for GraphQL"
6
6
7
7
ext {
8
8
moduleProjects = [project(" :spring-graphql" ), project(" :spring-graphql-test" )]
9
- springFrameworkVersion = " 7.0.0-M8 "
9
+ springFrameworkVersion = " 7.0.0-SNAPSHOT "
10
10
graphQlJavaVersion = " 25.0.beta-5"
11
11
}
12
12
Original file line number Diff line number Diff line change 24
24
import java .util .function .Consumer ;
25
25
26
26
import org .jspecify .annotations .Nullable ;
27
- import tools .jackson .databind .ObjectMapper ;
28
27
import tools .jackson .databind .json .JsonMapper ;
29
28
30
29
import org .springframework .core .codec .Decoder ;
@@ -248,7 +247,7 @@ private Decoder<?> getDecoder() {
248
247
249
248
protected static class DefaultJacksonCodecs {
250
249
251
- private static final ObjectMapper JSON_MAPPER = JsonMapper .builder ()
250
+ private static final JsonMapper JSON_MAPPER = JsonMapper .builder ()
252
251
.addModule (new GraphQlJacksonModule ()).build ();
253
252
254
253
static Encoder <?> encoder () {
Original file line number Diff line number Diff line change 27
27
import reactor .core .publisher .Flux ;
28
28
import reactor .test .StepVerifier ;
29
29
import tools .jackson .databind .ObjectMapper ;
30
+ import tools .jackson .databind .json .JsonMapper ;
30
31
31
32
import org .springframework .core .codec .DataBufferEncoder ;
32
33
import org .springframework .core .io .buffer .DefaultDataBuffer ;
@@ -182,7 +183,7 @@ void shouldUseCustomCodec() {
182
183
.queryFetcher ("showId" , (env ) -> env .getExecutionId ().toString ())
183
184
.toWebGraphQlHandler ();
184
185
185
- ObjectMapper mapper = new ObjectMapper ();
186
+ JsonMapper mapper = JsonMapper . builder (). build ();
186
187
CodecConfigurer configurer = ServerCodecConfigurer .create ();
187
188
configurer .defaultCodecs ().jacksonJsonDecoder (new JacksonJsonDecoder (mapper ));
188
189
configurer .defaultCodecs ().jacksonJsonEncoder (new JacksonJsonEncoder (mapper ));
You can’t perform that action at this time.
0 commit comments