Remove redundant ResourceLoaders from GraphQL auto-configuration
See gh-29976
This commit is contained in:
parent
73d0d5bccf
commit
5a52b36ec7
|
@ -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();
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue