我有一个使用 Netflix DGS (8.2.2) 和 Spring Boot (3.2.1) 的简单的 hello world 示例,默认情况下,graphql 端点在 /graphql 端点上公开
我尝试通过在 application.yml 中添加配置来将 graphql 端点更改为 /gql
dgs: graphql: endpoint: /gql
它不起作用。我仍然只能访问 /graphql 上的应用程序 知道出了什么问题吗?
文档在这里:https://netflix.github.io/dgs/configuration/
看起来您需要指定“路径”,而不是“端点”:
dgs: graphql: path: /gql