lizom
lizom

Reputation: 51

Spring Boot graphiql not working when running a Jar but works on IntelliJ

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

Answers (1)

Brian Clozel
Brian Clozel

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

Related Questions