Polish "Remove redundant ResourceLoaders from GraphQL auto-configuration"

See gh-29976
This commit is contained in:
Andy Wilkinson 2022-02-24 12:29:56 +00:00
parent 5a52b36ec7
commit 19b5431ba4
1 changed files with 1 additions and 3 deletions

View File

@ -38,7 +38,6 @@ import org.springframework.boot.autoconfigure.graphql.GraphQlProperties;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.core.io.ResourceLoader;
import org.springframework.core.log.LogMessage;
import org.springframework.graphql.GraphQlService;
import org.springframework.graphql.execution.GraphQlSource;
@ -102,8 +101,7 @@ public class GraphQlWebFluxAutoConfiguration {
}
@Bean
public RouterFunction<ServerResponse> graphQlEndpoint(GraphQlHttpHandler httpHandler,
GraphQlSource graphQlSource,
public RouterFunction<ServerResponse> graphQlEndpoint(GraphQlHttpHandler httpHandler, GraphQlSource graphQlSource,
GraphQlProperties properties) {
String path = properties.getPath();
logger.info(LogMessage.format("GraphQL endpoint HTTP POST %s", path));