@AutoConfiguration(after=GraphQlAutoConfiguration.class) @ConditionalOnWebApplication(type=REACTIVE) @ConditionalOnClass(value={graphql.GraphQL.class,org.springframework.graphql.server.webflux.GraphQlHttpHandler.class}) @ConditionalOnBean(value=org.springframework.graphql.ExecutionGraphQlService.class) @EnableConfigurationProperties(value=GraphQlCorsProperties.class) public class GraphQlWebFluxAutoConfiguration extends Object
Auto-configuration
for enabling Spring GraphQL over
WebFlux.Modifier and Type | Class and Description |
---|---|
static class |
GraphQlWebFluxAutoConfiguration.GraphQlEndpointCorsConfiguration |
static class |
GraphQlWebFluxAutoConfiguration.WebSocketConfiguration |
Constructor and Description |
---|
GraphQlWebFluxAutoConfiguration() |
Modifier and Type | Method and Description |
---|---|
RouterFunction<ServerResponse> |
graphQlEndpoint(org.springframework.graphql.server.webflux.GraphQlHttpHandler httpHandler,
org.springframework.graphql.execution.GraphQlSource graphQlSource,
GraphQlProperties properties) |
org.springframework.graphql.server.webflux.GraphQlHttpHandler |
graphQlHttpHandler(org.springframework.graphql.server.WebGraphQlHandler webGraphQlHandler) |
org.springframework.graphql.server.WebGraphQlHandler |
webGraphQlHandler(org.springframework.graphql.ExecutionGraphQlService service,
ObjectProvider<org.springframework.graphql.server.WebGraphQlInterceptor> interceptorsProvider) |
@Bean @ConditionalOnMissingBean public org.springframework.graphql.server.webflux.GraphQlHttpHandler graphQlHttpHandler(org.springframework.graphql.server.WebGraphQlHandler webGraphQlHandler)
@Bean @ConditionalOnMissingBean public org.springframework.graphql.server.WebGraphQlHandler webGraphQlHandler(org.springframework.graphql.ExecutionGraphQlService service, ObjectProvider<org.springframework.graphql.server.WebGraphQlInterceptor> interceptorsProvider)
@Bean public RouterFunction<ServerResponse> graphQlEndpoint(org.springframework.graphql.server.webflux.GraphQlHttpHandler httpHandler, org.springframework.graphql.execution.GraphQlSource graphQlSource, GraphQlProperties properties)