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"
66
77ext {
88 moduleProjects = [project(" :spring-graphql" ), project(" :spring-graphql-test" )]
9- springFrameworkVersion = " 7.0.0-M8 "
9+ springFrameworkVersion = " 7.0.0-SNAPSHOT "
1010 graphQlJavaVersion = " 25.0.beta-5"
1111}
1212
Original file line number Diff line number Diff line change 2424import java .util .function .Consumer ;
2525
2626import org .jspecify .annotations .Nullable ;
27- import tools .jackson .databind .ObjectMapper ;
2827import tools .jackson .databind .json .JsonMapper ;
2928
3029import org .springframework .core .codec .Decoder ;
@@ -248,7 +247,7 @@ private Decoder<?> getDecoder() {
248247
249248 protected static class DefaultJacksonCodecs {
250249
251- private static final ObjectMapper JSON_MAPPER = JsonMapper .builder ()
250+ private static final JsonMapper JSON_MAPPER = JsonMapper .builder ()
252251 .addModule (new GraphQlJacksonModule ()).build ();
253252
254253 static Encoder <?> encoder () {
Original file line number Diff line number Diff line change 2727import reactor .core .publisher .Flux ;
2828import reactor .test .StepVerifier ;
2929import tools .jackson .databind .ObjectMapper ;
30+ import tools .jackson .databind .json .JsonMapper ;
3031
3132import org .springframework .core .codec .DataBufferEncoder ;
3233import org .springframework .core .io .buffer .DefaultDataBuffer ;
@@ -182,7 +183,7 @@ void shouldUseCustomCodec() {
182183 .queryFetcher ("showId" , (env ) -> env .getExecutionId ().toString ())
183184 .toWebGraphQlHandler ();
184185
185- ObjectMapper mapper = new ObjectMapper ();
186+ JsonMapper mapper = JsonMapper . builder (). build ();
186187 CodecConfigurer configurer = ServerCodecConfigurer .create ();
187188 configurer .defaultCodecs ().jacksonJsonDecoder (new JacksonJsonDecoder (mapper ));
188189 configurer .defaultCodecs ().jacksonJsonEncoder (new JacksonJsonEncoder (mapper ));
You can’t perform that action at this time.
0 commit comments