Remove redundant ResourceLoaders from GraphQL auto-configuration

See gh-29976
This commit is contained in:
dugenkui03 2022-02-24 00:51:02 +08:00 committed by Andy Wilkinson
parent 73d0d5bccf
commit 5a52b36ec7
2 changed files with 4 additions and 4 deletions

View File

@ -102,8 +102,9 @@ public class GraphQlWebFluxAutoConfiguration {
}
@Bean
public RouterFunction<ServerResponse> graphQlEndpoint(GraphQlHttpHandler httpHandler, GraphQlSource graphQlSource,
GraphQlProperties properties, ResourceLoader resourceLoader) {
public RouterFunction<ServerResponse> graphQlEndpoint(GraphQlHttpHandler httpHandler,
GraphQlSource graphQlSource,
GraphQlProperties properties) {
String path = properties.getPath();
logger.info(LogMessage.format("GraphQL endpoint HTTP POST %s", path));
RouterFunctions.Builder builder = RouterFunctions.route();

View File

@ -41,7 +41,6 @@ import org.springframework.boot.autoconfigure.http.HttpMessageConverters;
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;
@ -106,7 +105,7 @@ public class GraphQlWebMvcAutoConfiguration {
@Bean
public RouterFunction<ServerResponse> graphQlRouterFunction(GraphQlHttpHandler httpHandler,
GraphQlSource graphQlSource, GraphQlProperties properties, ResourceLoader resourceLoader) {
GraphQlSource graphQlSource, GraphQlProperties properties) {
String path = properties.getPath();
logger.info(LogMessage.format("GraphQL endpoint HTTP POST %s", path));
RouterFunctions.Builder builder = RouterFunctions.route();