Skip to content
This repository was archived by the owner on Dec 19, 2023. It is now read-only.

Commit 3e00f3a

Browse files
authored
Merge pull request #400 from donbeave/master
GraphQLResponseCache support
2 parents 30b258a + f37cffc commit 3e00f3a

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

build.gradle

+4-4
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44
* Copyright (c) 2016 oEmbedler Inc. and Contributors
55
*
66
* Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
7-
* documentation files (the "Software"), to deal in the Software without restriction, including without limitation the
8-
* rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit
9-
* persons to whom the Software is furnished to do so, subject to the following conditions:
7+
* documentation files (the "Software"), to deal in the Software without restriction, including without limitation the
8+
* rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit
9+
* persons to whom the Software is furnished to do so, subject to the following conditions:
1010
*
1111
* The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
1212
*
@@ -51,7 +51,7 @@ subprojects {
5151
group "$PROJECT_GROUP"
5252

5353
repositories {
54-
// mavenLocal()
54+
mavenLocal()
5555
mavenCentral()
5656
jcenter()
5757
maven { url "https://dl.bintray.com/graphql-java-kickstart/releases" }

graphql-spring-boot-autoconfigure/src/main/java/graphql/kickstart/spring/web/boot/GraphQLWebAutoConfiguration.java

+5
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@
3838
import graphql.kickstart.servlet.AbstractGraphQLHttpServlet;
3939
import graphql.kickstart.servlet.GraphQLConfiguration;
4040
import graphql.kickstart.servlet.GraphQLHttpServlet;
41+
import graphql.kickstart.servlet.cache.GraphQLResponseCacheManager;
4142
import graphql.kickstart.servlet.config.DefaultGraphQLSchemaServletProvider;
4243
import graphql.kickstart.servlet.config.GraphQLSchemaServletProvider;
4344
import graphql.kickstart.servlet.context.GraphQLServletContextBuilder;
@@ -130,6 +131,9 @@ public class GraphQLWebAutoConfiguration {
130131
@Autowired(required = false)
131132
private BatchInputPreProcessor batchInputPreProcessor;
132133

134+
@Autowired(required = false)
135+
private GraphQLResponseCacheManager responseCacheManager;
136+
133137
@PostConstruct
134138
void postConstruct() {
135139
if (errorHandler != null) {
@@ -284,6 +288,7 @@ public GraphQLConfiguration graphQLServletConfiguration(GraphQLInvocationInputFa
284288
.with(graphQLServletProperties.getSubscriptionTimeout())
285289
.with(batchInputPreProcessor)
286290
.with(graphQLServletProperties.getContextSetting())
291+
.with(responseCacheManager)
287292
.build();
288293
}
289294

0 commit comments

Comments
 (0)