0

I have a basic spring boot 2.7 project with graphql.

I can access the /graphiql console from the path http://localhost:8080/graphiql?path=/graphql when running the project on intellij but I get 404 when running a jar file.

lizom
  • 41
  • 7

1 Answers1

1

GraphiQL is not enabled by default and this needs to be activated using spring.graphql.graphiql.enabled=true.

Your application is probably using devtools, which enables GraphiQL for development purposes. See Spring Boot reference documentation.

Brian Clozel
  • 56,583
  • 15
  • 167
  • 176
  • Thanks pointing this out. Its now working after adding spring.graphql.graphiql.enabled=true on the application.properties. Thank you. – lizom Jan 06 '22 at 18:37