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.
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.
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.