我现在正在学习GraphQL,遇到了一个问题。我有两种类型-作者和引号。它们通过字段author(作者)和quotes(引用)(仅在模式中)相互关联。因此,我收到此错误:
原因: org.springframework.beans.factory.UnsatisfiedDependencyException: 创建名称为“ graphQLServletRegistrationBean”的bean时出错 类路径资源 [com / oembedler / moon / graphql / boot / GraphQLWebAutoConfiguration.class]: 通过方法表达的不满意依赖性 'graphQLServletRegistrationBean'参数0;嵌套异常为 org.springframework.beans.factory.UnsatisfiedDependencyException: 创建类中定义的名称为“ graphQLHttpServlet”的bean时出错 路径资源 [com / oembedler / moon / graphql / boot / GraphQLWebAutoConfiguration.class]: 通过方法“ graphQLHttpServlet”表达的不满意的依赖关系 参数0;嵌套异常为 org.springframework.beans.factory.UnsatisfiedDependencyException: 创建名称为“ invocationInputFactory”的bean时出错 类路径资源 [com / oembedler / moon / graphql / boot / GraphQLWebAutoConfiguration.class]: 通过方法表达的不满意依赖性 'invocationInputFactory'参数0;嵌套异常为 org.springframework.beans.factory.UnsatisfiedDependencyException: 创建类中定义为名称“ graphQLSchemaProvider”的bean时出错 路径资源 [com / oembedler / moon / graphql / boot / GraphQLWebAutoConfiguration.class]: 通过方法表达的不满意依赖性 'graphQLSchemaProvider'参数0;嵌套异常为 org.springframework.beans.factory.UnsatisfiedDependencyException: 创建在类路径中定义的名称为“ graphQLSchema”的bean时出错 资源 [com / oembedler / moon / graphql / boot / GraphQLJavaToolsAutoConfiguration.class]: 通过方法“ graphQLSchema”表示的不满足的依赖性 参数0;嵌套异常为 org.springframework.beans.factory.BeanCreationException:错误 创建在类路径资源中定义的名称为“ schemaParser”的bean [com / oembedler / moon / graphql / boot / GraphQLJavaToolsAutoConfiguration.class]: 通过工厂方法实例化Bean失败;嵌套异常为 org.springframework.beans.BeanInstantiationException:失败 实例化[com.coxautodev.graphql.tools.SchemaParser]:工厂 方法“ schemaParser”抛出异常;嵌套异常为 com.coxautodev.graphql.tools.FieldResolverError:没有方法或字段 发现具有以下任何签名(带有或不带有以下任何一个) [接口graphql.schema.DataFetchingEnvironment]作为最后一个 参数),按优先级顺序排列: cloud.marciniak.blog.qutoes.models.Author.quotes() cloud.marciniak.blog.qutoes.models.Author.getQuotes() cloud.marciniak.blog.qutoes.models.Author.quotes
我正在寻找问题,但找不到任何解决方案。
here,您可以找到此项目。 感谢您的帮助!