在 Spring Boot 应用程序中禁用生产环境中的 GraphiQL 游乐场

问题描述

我在具有“graphiql-spring-boot-starter-5.0.2.jar”依赖项的graphiql playground的spring boot应用程序中添加了pom依赖项。

现在我想禁用生产环境的游乐场。

并已尝试使用以下 Spring Boot 应用程序,但这些选项均无法禁用 GraphiQL 端点。

  1. graphiql.enabled= false
  2. dgs.graphql.graphiql.enabled=false

您能否建议我们如何禁用 GraphiQL?

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)