You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
spring-boot/spring-boot-project
Brian Clozel 087e853c5d Refine GraphQL server auto-configuration
Prior to this commit, launching a GraphQL application without any schema
file or customizer bean would result in an exception caught by a
FailureAnalyzer telling the developer about configured locations.

Since then, a new client has been introduced in Spring GraphQL and the
mere presence of the GraphQL starter does not mean anymore that the
intent is to create a GraphQL API in the app: we could instead just
consume an existing, remote API.

This commit refines the GraphQL server auto-configuration so that it is
enabled only if:

* there is at least one schema file in the configured locations
* or a `GraphQlSourceCustomizer` bean has been defined in the app

These changes make the custom FailureAnalyzer useless and is also
removed as part of this commit.

Closes gh-30035
3 years ago
..
spring-boot Merge branch '2.6.x' into 2.7.x 3 years ago
spring-boot-actuator Align with latest repackaging of CacheMeterBinder in Micrometer 3 years ago
spring-boot-actuator-autoconfigure Merge branch '2.6.x' into 2.7.x 3 years ago
spring-boot-autoconfigure Refine GraphQL server auto-configuration 3 years ago
spring-boot-cli Exclude duplicate properties file when building a jar from jars 3 years ago
spring-boot-dependencies Upgrade to Spring GraphQL 1.0.0-SNAPSHOT 3 years ago
spring-boot-devtools Merge branch '2.6.x' into 2.7.x 3 years ago
spring-boot-docs Upgrade to Spring GraphQL 1.0.0-SNAPSHOT 3 years ago
spring-boot-parent Merge branch '2.5.x' into 2.6.x 3 years ago
spring-boot-properties-migrator
spring-boot-starters Start building against Micrometer 1.9.0-M4 snapshots 3 years ago
spring-boot-test Upgrade to Spring GraphQL 1.0.0-SNAPSHOT 3 years ago
spring-boot-test-autoconfigure Upgrade to Spring GraphQL 1.0.0-SNAPSHOT 3 years ago
spring-boot-tools Merge branch '2.6.x' into 2.7.x 3 years ago