bug: DGS Framework not working with Spring Boot 3
See original GitHub issueHi guys.
With the new release of Spring Framework 6 and Spring Boot 3, I decided to upgrade my existing Spring Boot application. After going through the pain of changing the codebase to be compatible with Spring Boot 3, I realized that GQL queries using the DGS Framework stopped working with a 404. Reverting to Spring Boot 2.x and everything works as expected.
Expected behavior
Should be able to hit the configured GraphQL endpoint.
Actual behavior
You get similar error:
{"timestamp":"...","status":404,"error":"Not Found","message":"No message available","path":"/graphql (or your configured endpoint)"}
Steps to reproduce
- Create new two projects, one a Spring Boot 3 and the other Spring Boot 2.x.
- Add required DGS Framework dependencies.
- Create similar schema for both projects
- Start both projects (on different ports at the same time or one after the other).
Spring Boot 2.x project displays c.n.g.d.w.a.GraphiQLConfigurer : Configuring GraphiQL to use GraphQL endpoint at '/graphql (or your configured endpoint)' in terminal signifying OK setup of DGS Framework. Spring Boot 3 project does not display any info in terminal and returns a 404 if a query request is made to the configured endpoint.
NB: Spring Boot 3 also displays the following warning:
o.s.c.annotation.AnnotationTypeMapping : Support for convention-based annotation attribute overrides is deprecated and will be removed in Spring Framework 6.1. Please annotate the following attributes in @com.netflix.graphql.dgs.DgsMutation with appropriate @AliasFor declarations: [field]
o.s.c.annotation.AnnotationTypeMapping : Support for convention-based annotation attribute overrides is deprecated and will be removed in Spring Framework 6.1. Please annotate the following attributes in @com.netflix.graphql.dgs.DgsQuery with appropriate @AliasFor declarations: [field]
Issue Analytics
- State:
- Created 10 months ago
- Reactions:3
- Comments:7 (2 by maintainers)
Top Related StackOverflow Question
We have a PR in progress that is being tested and in progress: https://github.com/Netflix/dgs-framework/pull/1230#issuecomment-1355019036
Also, I’m running with Spring Boot 3.x got the same problem, can’t access
/graphqland/graphiql.