graphql-java-kickstart / graphql-spring-boot

GraphQL and GraphiQL Spring Framework Boot Starters - Forked from oembedler/graphql-spring-boot due to inactivity.
https://www.graphql-java-kickstart.com/spring-boot/
MIT License
1.5k stars 325 forks source link

Update from Spring Boot 2.0.3.RELEASE to 2.1.2.RELEASE #185

Closed juergenzimmermann closed 5 years ago

juergenzimmermann commented 5 years ago

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.

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

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

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"
}
oliemansm commented 5 years ago

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

allenstr90 commented 5 years ago

@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"; } }`

oliemansm commented 5 years ago

Closing this issue due to inactivity.

ullasmbbs1 commented 4 years ago

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" }

GaborCsikos commented 3 years ago

What was the solution?