Reputation: 51
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.
Upvotes: 0
Views: 3687
Reputation: 59056
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.
Upvotes: 2