Class GraphQlWebMvcAutoConfiguration
java.lang.Object
org.springframework.boot.autoconfigure.graphql.servlet.GraphQlWebMvcAutoConfiguration
@AutoConfiguration(after=GraphQlAutoConfiguration.class)
@ConditionalOnWebApplication(type=SERVLET)
@ConditionalOnClass({graphql.GraphQL.class,org.springframework.graphql.server.webmvc.GraphQlHttpHandler.class})
@ConditionalOnBean(org.springframework.graphql.ExecutionGraphQlService.class)
@EnableConfigurationProperties(GraphQlCorsProperties.class)
@ImportRuntimeHints(org.springframework.boot.autoconfigure.graphql.servlet.GraphQlWebMvcAutoConfiguration.GraphiQlResourceHints.class)
public class GraphQlWebMvcAutoConfiguration
extends Object
Auto-configuration
for enabling Spring GraphQL over
Spring MVC.- Since:
- 2.7.0
- Author:
- Brian Clozel
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static class
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.graphql.server.webmvc.GraphQlHttpHandler
graphQlHttpHandler
(org.springframework.graphql.server.WebGraphQlHandler webGraphQlHandler) graphQlRouterFunction
(org.springframework.graphql.server.webmvc.GraphQlHttpHandler httpHandler, org.springframework.graphql.server.webmvc.GraphQlSseHandler sseHandler, org.springframework.graphql.execution.GraphQlSource graphQlSource, GraphQlProperties properties) org.springframework.graphql.server.webmvc.GraphQlSseHandler
graphQlSseHandler
(org.springframework.graphql.server.WebGraphQlHandler webGraphQlHandler) org.springframework.graphql.server.WebGraphQlHandler
webGraphQlHandler
(org.springframework.graphql.ExecutionGraphQlService service, ObjectProvider<org.springframework.graphql.server.WebGraphQlInterceptor> interceptors)
-
Constructor Details
-
GraphQlWebMvcAutoConfiguration
public GraphQlWebMvcAutoConfiguration()
-
-
Method Details
-
graphQlHttpHandler
@Bean @ConditionalOnMissingBean public org.springframework.graphql.server.webmvc.GraphQlHttpHandler graphQlHttpHandler(org.springframework.graphql.server.WebGraphQlHandler webGraphQlHandler) -
graphQlSseHandler
@Bean @ConditionalOnMissingBean public org.springframework.graphql.server.webmvc.GraphQlSseHandler graphQlSseHandler(org.springframework.graphql.server.WebGraphQlHandler webGraphQlHandler) -
webGraphQlHandler
@Bean @ConditionalOnMissingBean public org.springframework.graphql.server.WebGraphQlHandler webGraphQlHandler(org.springframework.graphql.ExecutionGraphQlService service, ObjectProvider<org.springframework.graphql.server.WebGraphQlInterceptor> interceptors) -
graphQlRouterFunction
@Bean @Order(0) public RouterFunction<ServerResponse> graphQlRouterFunction(org.springframework.graphql.server.webmvc.GraphQlHttpHandler httpHandler, org.springframework.graphql.server.webmvc.GraphQlSseHandler sseHandler, org.springframework.graphql.execution.GraphQlSource graphQlSource, GraphQlProperties properties)
-