Spring boot 如何在springboot graphql应用程序中设置基本url
如何在springboot graphql服务器应用程序中设置基本url。 默认情况下,Spring boot 如何在springboot graphql应用程序中设置基本url,spring-boot,graphql,Spring Boot,Graphql,如何在springboot graphql服务器应用程序中设置基本url。 默认情况下,graphiqlapi控制台在 正在尝试通过邮递员使用post查询进行访问,如下所示: { bookings { name } } 给出一个错误说明: { "timestamp": 1549913598497, "status": 404, "error": "Not Found", "message": "No message availab
graphiql
api控制台在
正在尝试通过邮递员使用post查询进行访问,如下所示:
{
bookings {
name
}
}
给出一个错误说明:
{
"timestamp": 1549913598497,
"status": 404,
"error": "Not Found",
"message": "No message available",
"path": "/"
}
http://localhost:8080/graphql
。如果在GraphiQL界面上运行查询时不只是检查浏览器上的“网络”选项卡,它还会在api端点上运行查询application.properties
更改为以下内容:@TarunPatel然后您应该指定问题的版本。第一个问题的答案应该是正确的。:update。。我的错。。在graphql和speingboot之间的JAR/版本冲突方面出现了一些问题,这导致了我的问题。我已将你的答案标记为正确。感谢您的帮助,因为application.properties中的graphql.url=/test工作正常,所以url类似:<代码>graphql java spring boot starter webmvc,版本2019-06-24T11-47-27-31ab4f9
graphql.servlet.mapping: /service/api/query
graphiql.mapping: /graphiql
graphiql.endpoint: /service/api/query