use configuration annotation

This commit is contained in:
Andreas Marek
2020-08-09 16:34:51 +10:00
committed by Rossen Stoyanchev
parent 11d2ad74cf
commit 7edc2d9ce6
2 changed files with 10 additions and 8 deletions

View File

@@ -3,8 +3,8 @@ package org.springframework.graphql.reactive.components;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.graphql.reactive.GraphQLInvocationData;
import org.springframework.stereotype.Component;
import org.springframework.web.reactive.function.server.RouterFunction;
import org.springframework.web.reactive.function.server.ServerRequest;
import org.springframework.web.reactive.function.server.ServerResponse;
@@ -14,7 +14,7 @@ import java.util.Map;
import static org.springframework.web.reactive.function.server.RouterFunctions.route;
@Component
@Configuration
public class GraphQLController {
@Autowired