Class GraphQlWebFluxAutoConfiguration

java.lang.Object
org.springframework.boot.autoconfigure.graphql.reactive.GraphQlWebFluxAutoConfiguration

@AutoConfiguration(after=GraphQlAutoConfiguration.class) @ConditionalOnWebApplication(type=REACTIVE) @ConditionalOnClass({graphql.GraphQL.class,org.springframework.graphql.server.webflux.GraphQlHttpHandler.class}) @ConditionalOnBean(org.springframework.graphql.ExecutionGraphQlService.class) @EnableConfigurationProperties(GraphQlCorsProperties.class) @ImportRuntimeHints(org.springframework.boot.autoconfigure.graphql.reactive.GraphQlWebFluxAutoConfiguration.GraphiQlResourceHints.class) public class GraphQlWebFluxAutoConfiguration extends Object
Auto-configuration for enabling Spring GraphQL over WebFlux.
Since:
2.7.0
Author:
Brian Clozel
  • Constructor Details

    • GraphQlWebFluxAutoConfiguration

      public GraphQlWebFluxAutoConfiguration()
  • Method Details

    • webGraphQlHandler

      @Bean @ConditionalOnMissingBean public org.springframework.graphql.server.WebGraphQlHandler webGraphQlHandler(org.springframework.graphql.ExecutionGraphQlService service, ObjectProvider<org.springframework.graphql.server.WebGraphQlInterceptor> interceptors)
    • graphQlHttpHandler

      @Bean @ConditionalOnMissingBean public org.springframework.graphql.server.webflux.GraphQlHttpHandler graphQlHttpHandler(org.springframework.graphql.server.WebGraphQlHandler webGraphQlHandler)
    • graphQlSseHandler

      @Bean @ConditionalOnMissingBean public org.springframework.graphql.server.webflux.GraphQlSseHandler graphQlSseHandler(org.springframework.graphql.server.WebGraphQlHandler webGraphQlHandler)
    • graphQlRouterFunction

      @Bean @Order(0) public RouterFunction<ServerResponse> graphQlRouterFunction(org.springframework.graphql.server.webflux.GraphQlHttpHandler httpHandler, org.springframework.graphql.server.webflux.GraphQlSseHandler sseHandler, org.springframework.graphql.execution.GraphQlSource graphQlSource, GraphQlProperties properties)