Closed juergenzimmermann closed 5 years ago
What is the issue you have? I'm running Graphl Spring Boot starter 5.4 with Spring Boot 2.1.1.RELEASE and it seems to work fine.
What is the issue you have? I'm running Graphl Spring Boot starter 5.4 with Spring Boot 2.1.1.RELEASE and it seems to work fine.
When I run with Graphl Spring Boot starter 5.4.1 with Spring Boot 2.1.1.RELEASE. Occurred follows issue:
{
"timestamp": "2019-02-05T03:15:56.003+0000",
"status": 404,
"error": "Not Found",
"message": "Not Found",
"path": "/graphql"
}
@juergenzimmermann @JaredTan95 Can either of you start the application with Spring Boot debugging enabled and either analyze the log yourself or upload it here? If the GraphQL servlet is not available (as this error message implies) it means that the autoconfiguration could not find certain beans it was expecting to be able to set up the GraphQL servlet.
@JaredTan95 Try add '@Component' on Query resolver
`package mypackage; import com.coxautodev.graphql.tools.GraphQLQueryResolver; import org.springframework.stereotype.Component;
@Component public class Query implements GraphQLQueryResolver { public String hello() { return "MSG"; } }`
Closing this issue due to inactivity.
Same error for my application also, but i am able to load the GraphiQL gui. Please help to find what is missing. { "timestamp": 1592128721202, "status": 404, "error": "Not Found", "message": "No message available", "path": "/graphql" }
What was the solution?
The 2.1.0.RELEASE is available Oct 30, and 2.1.2.RELEASE since Jan 12. Therefore, it would be nice if graphql-spring-boot would support Spring Boot's 2.1 releases.