You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: spring-boot-project/spring-boot-actuator-autoconfigure/src/test/java/org/springframework/boot/actuate/autoconfigure/metrics/export/prometheus/PrometheusMetricsExportAutoConfigurationTests.java
+2
Original file line number
Diff line number
Diff line change
@@ -295,6 +295,7 @@ static class ExemplarsConfiguration {
Copy file name to clipboardExpand all lines: spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/graphql/DefaultGraphQlSchemaCondition.java
-1
Original file line number
Diff line number
Diff line change
@@ -58,7 +58,6 @@ public ConditionOutcome getMatchOutcome(ConditionContext context, AnnotatedTypeM
Copy file name to clipboardExpand all lines: spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/graphql/rsocket/RSocketGraphQlClientAutoConfiguration.java
+4-3
Original file line number
Diff line number
Diff line change
@@ -33,9 +33,10 @@
33
33
34
34
/**
35
35
* {@link EnableAutoConfiguration Auto-configuration} for {@link RSocketGraphQlClient}.
36
-
* This auto-configuration creates {@link RSocketGraphQlClient.Builder} prototype beans,
37
-
* as the builders are stateful and should not be reused to build client instances with
Copy file name to clipboardExpand all lines: spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/security/saml2/Saml2RelyingPartyProperties.java
Copy file name to clipboardExpand all lines: spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/security/saml2/Saml2RelyingPartyRegistrationConfiguration.java
"Property 'spring.security.saml2.relyingparty.registration.identityprovider.%1$s.%2$s' is deprecated, please use 'spring.security.saml2.relyingparty.registration.asserting-party.%1$s.%2$s' instead",
Copy file name to clipboardExpand all lines: spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/security/servlet/SpringBootWebSecurityConfiguration.java
Copy file name to clipboardExpand all lines: spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/security/saml2/Saml2RelyingPartyAutoConfigurationTests.java
+1
Original file line number
Diff line number
Diff line change
@@ -53,6 +53,7 @@
53
53
* Tests for {@link Saml2RelyingPartyAutoConfiguration}.
Copy file name to clipboardExpand all lines: spring-boot-project/spring-boot-docs/src/docs/asciidoc/web/spring-graphql.adoc
+6-7
Original file line number
Diff line number
Diff line change
@@ -31,7 +31,6 @@ Because GraphQL is transport-agnostic, you'll also need to have one or more addi
31
31
32
32
[[web.graphql.schema]]
33
33
=== GraphQL Schema
34
-
35
34
A Spring GraphQL application requires a defined schema at startup.
36
35
By default, you can write ".graphqls" or ".gqls" schema files under `src/main/resources/graphql/**` and Spring Boot will pick them up automatically.
37
36
You can customize the locations with configprop:spring.graphql.schema.locations[] and the file extensions with configprop:spring.graphql.schema.file-extensions[].
NOTE: By default, https://spec.graphql.org/draft/#sec-Introspection[field introspection] will be allowed on the schema as it is required for tools such as GraphiQL.
47
46
If you wish to not expose information about the schema, you can disable introspection by setting configprop:spring.graphql.schema.introspection.enabled[] to `false`.
48
47
48
+
49
+
49
50
[[web.graphql.runtimewiring]]
50
51
=== GraphQL RuntimeWiring
51
-
52
52
The GraphQL Java `RuntimeWiring.Builder` can be used to register custom scalar types, directives, type resolvers, `DataFetcher`s, and more.
53
53
You can declare `RuntimeWiringConfigurer` beans in your Spring config to get access to the `RuntimeWiring.Builder`.
54
54
Spring Boot detects such beans and adds them to the {spring-graphql-docs}#execution-graphqlsource[GraphQlSource builder].
=== Querydsl and QueryByExample Repositories support
66
-
67
66
Spring Data offers support for both Querydsl and QueryByExample repositories.
68
67
Spring GraphQL can {spring-graphql-docs}#data[configure Querydsl and QueryByExample repositories as `DataFetcher`].
69
68
@@ -80,9 +79,10 @@ are detected by Spring Boot and considered as candidates for `DataFetcher` for m
80
79
[[web.graphql.transports]]
81
80
=== Transports
82
81
82
+
83
+
83
84
[[web.graphql.transports.http-websocket]]
84
85
==== HTTP and WebSocket
85
-
86
86
The GraphQL HTTP endpoint is at HTTP POST "/graphql" by default. The path can be customized with configprop:spring.graphql.path[].
87
87
88
88
The GraphQL WebSocket endpoint is off by default. To enable it:
@@ -112,9 +112,9 @@ Spring Boot supports many configuration properties under the `spring.graphql.cor
112
112
----
113
113
114
114
115
+
115
116
[[web.graphql.transports.rsocket]]
116
117
==== RSocket
117
-
118
118
RSocket is also supported as a transport, on top of WebSocket or TCP.
119
119
Once the <<messaging#messaging.rsocket.server-auto-configuration,RSocket server is configured>>, we can configure our GraphQL handler on a particular route using configprop:spring.graphql.rsocket.mapping[].
120
120
For example, configuring that mapping as `"graphql"` means we can use that as a route when sending requests with the `RSocketGraphQlClient`.
Spring GraphQL enables applications to register one or more Spring `DataFetcherExceptionResolver` components that are invoked sequentially.
134
134
The Exception must be resolved to a list of `graphql.GraphQLError` objects, see {spring-graphql-docs}#execution-exceptions[Spring GraphQL exception handling documentation].
135
135
Spring Boot will automatically detect `DataFetcherExceptionResolver` beans and register them with the `GraphQlSource.Builder`.
@@ -138,7 +138,6 @@ Spring Boot will automatically detect `DataFetcherExceptionResolver` beans and r
138
138
139
139
[[web.graphql.graphiql]]
140
140
=== GraphiQL and Schema printer
141
-
142
141
Spring GraphQL offers infrastructure for helping developers when consuming or developing a GraphQL API.
143
142
144
143
Spring GraphQL ships with a default https://github.com/graphql/graphiql[GraphiQL] page that is exposed at `"/graphiql"` by default.
Copy file name to clipboardExpand all lines: spring-boot-project/spring-boot-test-autoconfigure/src/main/java/org/springframework/boot/test/autoconfigure/graphql/tester/GraphQlTesterAutoConfiguration.java
+1-2
Original file line number
Diff line number
Diff line change
@@ -51,8 +51,7 @@ public ExecutionGraphQlServiceTester graphQlTester(ExecutionGraphQlService graph
0 commit comments