Java 在spring boot应用程序中禁用生产上的GraphiQL

Java 在spring boot应用程序中禁用生产上的GraphiQL,java,spring-boot,graphql,graphql-java,graphiql,Java,Spring Boot,Graphql,Graphql Java,Graphiql,我在graphiql游乐场的spring boot应用程序中添加了pom依赖项,其中包含“graphiql-spring-boot-starter-5.0.2.jar”依赖项 现在我想禁用生产环境的游乐场 并尝试了以下spring引导应用程序,但这些选项都无法禁用GraphiQL端点 graphiql.enabled=false dgs.graphql.graphiql.enabled=false 您能建议我们如何禁用GraphiQL吗

我在graphiql游乐场的spring boot应用程序中添加了pom依赖项,其中包含“graphiql-spring-boot-starter-5.0.2.jar”依赖项

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

并尝试了以下spring引导应用程序,但这些选项都无法禁用GraphiQL端点

  • graphiql.enabled=false
  • dgs.graphql.graphiql.enabled=false
  • 您能建议我们如何禁用GraphiQL吗