Coder Social home page Coder Social logo

DefaultHandlerExceptionResolver : Resolved [org.springframework.web.bind.MissingServletRequestParameterException: Required String parameter 'query' is not present] about tutorials HOT 11 CLOSED

graphql-java avatar graphql-java commented on July 21, 2024 2
DefaultHandlerExceptionResolver : Resolved [org.springframework.web.bind.MissingServletRequestParameterException: Required String parameter 'query' is not present]

from tutorials.

Comments (11)

wzdacyl avatar wzdacyl commented on July 21, 2024 2

If you put graphQL body into request parameter, it may work. Try this,
http://localhost:8080/graphql?query={
bookById(id: "book-1"){
id
name
pageCount
author {
firstName
lastName
}
}
}

from tutorials.

iyuohz avatar iyuohz commented on July 21, 2024 2

post method,don‘t use get method

Having same issue. Tried postman and got a bad request.

from tutorials.

wzdacyl avatar wzdacyl commented on July 21, 2024 1

image

from tutorials.

shivampatel8 avatar shivampatel8 commented on July 21, 2024 1

Having same issue. Tried postman and got a bad request.

from tutorials.

robertkuhar avatar robertkuhar commented on July 21, 2024

I get the same failure from fresh pull. I'm Java 8.

$ java -version
openjdk version "1.8.0_222"
OpenJDK Runtime Environment (AdoptOpenJDK)(build 1.8.0_222-b10)
OpenJDK 64-Bit Server VM (AdoptOpenJDK)(build 25.222-b10, mixed mode)

from tutorials.

ljjbluesky avatar ljjbluesky commented on July 21, 2024

I also encountered the same problem, how can I solve it?

from tutorials.

Ren22 avatar Ren22 commented on July 21, 2024

Same

java version "1.8.0_151" Java(TM) SE Runtime Environment (build 1.8.0_151-b12) Java HotSpot(TM) 64-Bit Server VM (build 25.151-b12, mixed mode)

from tutorials.

mddhif avatar mddhif commented on July 21, 2024

Have you added the graphiql-spring-boot-starter dependency ?

in gradle :
compile 'com.graphql-java:graphiql-spring-boot-starter:5.0.2'

I hope it'll work

from tutorials.

woshiyexinjie avatar woshiyexinjie commented on July 21, 2024

you can use some tools ,such as postman

from tutorials.

kmmbvnr avatar kmmbvnr commented on July 21, 2024

See #10 that helps for me

from tutorials.

dondonz avatar dondonz commented on July 21, 2024

Closing this old issue as the tutorial has since been rewritten to use Spring for GraphQL

from tutorials.

Related Issues (15)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.