其他分享
首页 > 其他分享> > graphQL 启动报错No method or field found with any of the following signatures (with or without one of [i

graphQL 启动报错No method or field found with any of the following signatures (with or without one of [i

作者:互联网

-------------------root.graphqls---------------------------这个文件用来定义属性字段,必须和实体类相同

文件里面的字段写错会报这个错误

com.coxautodev.graphql.tools.FieldResolverError: No method or field found with any of the following signatures (with or without one of [interface graphql.schema.DataFetchingEnvironment] as the last argument), in priority order:

com.zsn.graphqlspringboot.pojo.Emp.dep_id()
com.zsn.graphqlspringboot.pojo.Emp.getDep_id()
com.zsn.graphqlspringboot.pojo.Emp.dep_id

就是这个"dep_id"这个字段写错

标签:signatures,DataFetchingEnvironment,dep,pojo,报错,Emp,graphqlspringboot,com,id
来源: https://www.cnblogs.com/Zhusi/p/10995435.html