@Configuration(proxyBeanMethods=false) @ConditionalOnWebApplication(type=SERVLET) @ConditionalOnClass(value={graphql.GraphQL.class,org.springframework.graphql.web.webmvc.GraphQlHttpHandler.class}) @ConditionalOnBean(value=org.springframework.graphql.GraphQlService.class) @AutoConfigureAfter(value=GraphQlAutoConfiguration.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 handler,
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 handler, org.springframework.graphql.execution.GraphQlSource graphQlSource, GraphQlProperties properties, ResourceLoader resourceLoader)