@Configuration @ConditionalOnWebApplication(type=SERVLET) public class MvcAutoConfiguration extends Object
| Constructor and Description |
|---|
MvcAutoConfiguration() |
| Modifier and Type | Method and Description |
|---|---|
GraphQLMvcExecutor |
defaultExecutor(MvcContextFactory contextFactory,
SpqrProperties config) |
MvcContextFactory |
globalContextFactory() |
DefaultGraphQLController |
graphQLController(graphql.GraphQL graphQL,
GraphQLMvcExecutor executor) |
GuiController |
guiController(SpqrProperties config) |
@Bean @ConditionalOnMissingBean public MvcContextFactory globalContextFactory()
@Bean
@ConditionalOnProperty(name="graphql.spqr.http.enabled",
havingValue="true",
matchIfMissing=true)
@ConditionalOnMissingBean
public GraphQLMvcExecutor defaultExecutor(MvcContextFactory contextFactory,
SpqrProperties config)
@Bean
@ConditionalOnProperty(name="graphql.spqr.http.enabled",
havingValue="true",
matchIfMissing=true)
@ConditionalOnMissingBean(value=GraphQLController.class)
@ConditionalOnBean(value=graphql.schema.GraphQLSchema.class)
public DefaultGraphQLController graphQLController(graphql.GraphQL graphQL,
GraphQLMvcExecutor executor)
@Bean
@ConditionalOnProperty(value="graphql.spqr.gui.enabled",
havingValue="true")
public GuiController guiController(SpqrProperties config)
Copyright © 2018–2021. All rights reserved.