@AutoConfiguration(after=GraphQlAutoConfiguration.class) @ConditionalOnWebApplication(type=SERVLET) @ConditionalOnClass(value={graphql.GraphQL.class,org.springframework.graphql.web.webmvc.GraphQlHttpHandler.class}) @ConditionalOnBean(value=org.springframework.graphql.GraphQlService.class) @EnableConfigurationProperties(value=GraphQlCorsProperties.class) public class GraphQlWebMvcAutoConfiguration extends Object
Auto-configuration
for enabling Spring GraphQL over
Spring MVC.Modifier and Type | Class and Description |
---|---|
static class |
GraphQlWebMvcAutoConfiguration.GraphQlEndpointCorsConfiguration |
static class |
GraphQlWebMvcAutoConfiguration.WebSocketConfiguration |
Constructor and Description |
---|
GraphQlWebMvcAutoConfiguration() |
Modifier and Type | Method and Description |
---|---|
org.springframework.graphql.web.webmvc.GraphQlHttpHandler |
graphQlHttpHandler(org.springframework.graphql.web.WebGraphQlHandler webGraphQlHandler) |
RouterFunction<ServerResponse> |
graphQlRouterFunction(org.springframework.graphql.web.webmvc.GraphQlHttpHandler httpHandler,
org.springframework.graphql.execution.GraphQlSource graphQlSource,
GraphQlProperties properties,
ResourceLoader resourceLoader) |
org.springframework.graphql.web.WebGraphQlHandler |
webGraphQlHandler(org.springframework.graphql.GraphQlService service,
ObjectProvider<org.springframework.graphql.web.WebInterceptor> interceptorsProvider,
ObjectProvider<org.springframework.graphql.execution.ThreadLocalAccessor> accessorsProvider) |
@Bean @ConditionalOnMissingBean public org.springframework.graphql.web.webmvc.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, ObjectProvider<org.springframework.graphql.execution.ThreadLocalAccessor> accessorsProvider)
@Bean public RouterFunction<ServerResponse> graphQlRouterFunction(org.springframework.graphql.web.webmvc.GraphQlHttpHandler httpHandler, org.springframework.graphql.execution.GraphQlSource graphQlSource, GraphQlProperties properties, ResourceLoader resourceLoader)