【发布时间】:2021-06-01 21:32:28
【问题描述】:
我的 springboot 应用程序存在问题,该应用程序使用以下 maven 依赖项进行 graphql:
<dependency>
<groupId>com.graphql-java-generator</groupId>
<artifactId>graphql-java-runtime</artifactId>
<version>${graphql-maven-plugin.version}</version>
</dependency>
我在日志中收到以下错误:
Description:
Field graphQL in graphql.spring.web.servlet.components.DefaultGraphQLInvocation required a bean of type 'graphql.GraphQL' that could not be found.
The injection point has the following annotations:
- @org.springframework.beans.factory.annotation.Autowired(required=true)
Action:
Consider defining a bean of type 'graphql.GraphQL' in your configuration.
任何帮助将不胜感激。
谢谢!
【问题讨论】:
标签: java spring-boot graphql