@Configuration(proxyBeanMethods=false) @ConditionalOnWebApplication(type=REACTIVE) @ConditionalOnClass(value={graphql.GraphQL.class,org.springframework.graphql.web.webflux.GraphQlHttpHandler.class}) @ConditionalOnBean(value=org.springframework.graphql.GraphQlService.class) @AutoConfigureAfter(value=GraphQlAutoConfiguration.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.web.webflux.GraphQlHttpHandler handler,
org.springframework.graphql.execution.GraphQlSource graphQlSource,
GraphQlProperties properties,
ResourceLoader resourceLoader) |
org.springframework.graphql.web.webflux.GraphQlHttpHandler |
graphQlHttpHandler(org.springframework.graphql.web.WebGraphQlHandler webGraphQlHandler) |
org.springframework.graphql.web.WebGraphQlHandler |
webGraphQlHandler(org.springframework.graphql.GraphQlService service,
ObjectProvider<org.springframework.graphql.web.WebInterceptor> interceptorsProvider) |
@Bean @ConditionalOnMissingBean public org.springframework.graphql.web.webflux.GraphQlHttpHandler graphQlHttpHandler(org.springframework.graphql.web.WebGraphQlHandler webGraphQlHandler)
@Bean @ConditionalOnMissingBean public org.springframework.graphql.web.WebGraphQlHandler webGraphQlHandler(org.springframework.graphql.GraphQlService service, ObjectProvider<org.springframework.graphql.web.WebInterceptor> interceptorsProvider)
@Bean public RouterFunction<ServerResponse> graphQlEndpoint(org.springframework.graphql.web.webflux.GraphQlHttpHandler handler, org.springframework.graphql.execution.GraphQlSource graphQlSource, GraphQlProperties properties, ResourceLoader resourceLoader)