Closed ls-urs-keller closed 4 months ago
Thanks for the detailed report. I think this is a duplicate of https://github.com/spring-projects/spring-boot/issues/14012
Thanks for the detailed report. I think this is a duplicate of spring-projects/spring-boot#14012
Is there a workaround? Or can the Graphql custom handler be fixed?
Is there a workaround? Or can the Graphql custom handler be fixed?
Not that I'm aware of.
Graphql also binds to the management port when using webflux.
Steps to reproduce
curl 'http://localhost:8080/test'
-> OKcurl 'http://localhost:8081/test'
-> OK returns 404curl 'http://localhost:8080/graphql' -H 'Content-Type: application/json' --data-raw '{"query":"{test}"}'
-> OKcurl 'http://localhost:8081/graphql' -H 'Content-Type: application/json' --data-raw '{"query":"{test}"}'
-> KO returns graphql responseThe problem is only present with webflux. The same application without webflux behaves correctly: Change
to
Test project here:
demo.zip
src/main/resources/graphql/schema.graphqls
src/main/resources/application.properties
src/main/java/com/example/demo/DemoApplication.java
pom.xml