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

Commit 0170cec

Browse files
committed
fix #65 and fix #97
1 parent 61fca22 commit 0170cec

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

graphql-spring-boot-autoconfigure/src/main/java/com/oembedler/moon/graphql/boot/GraphQLWebAutoConfiguration.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,12 +41,10 @@
4141
import graphql.servlet.GraphQLRootObjectBuilder;
4242
import graphql.servlet.GraphQLSchemaProvider;
4343
import graphql.servlet.GraphQLServletListener;
44-
import graphql.servlet.GraphQLWebsocketServlet;
4544
import graphql.servlet.ObjectMapperConfigurer;
4645
import graphql.servlet.ObjectMapperProvider;
4746
import graphql.servlet.SimpleGraphQLHttpServlet;
4847
import org.springframework.beans.factory.annotation.Autowired;
49-
import org.springframework.beans.factory.annotation.Value;
5048
import org.springframework.boot.autoconfigure.AutoConfigureAfter;
5149
import org.springframework.boot.autoconfigure.condition.ConditionalOnBean;
5250
import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
@@ -213,7 +211,7 @@ public GraphQLObjectMapper graphQLObjectMapper(Optional<ObjectMapperProvider> ob
213211
builder.withGraphQLErrorHandler(errorHandler);
214212
}
215213

216-
if(objectMapperProvider.isPresent()){
214+
if (objectMapperProvider.isPresent()){
217215
builder.withObjectMapperProvider(objectMapperProvider.get());
218216
} else if (objectMapperConfigurer != null) {
219217
builder.withObjectMapperConfigurer(objectMapperConfigurer);

0 commit comments

Comments
 (0)