You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I use spring boot 3.2.3, JDK 17、DGS 8.4.0,IDEA to run a graphql demo refer to https://netflix.github.io/dgs/getting-started/#__tabbed_1_3
problems:
when I run my spring boot application in IDEA and input http://localhost:8080/graphiql,the IDEA console shows:
2024-03-04T16:46:01.214+08:00 DEBUG 35787 --- [nio-8080-exec-1] o.s.web.servlet.DispatcherServlet : GET "/graphiql", parameters={} 2024-03-04T16:46:01.222+08:00 DEBUG 35787 --- [nio-8080-exec-1] o.s.w.s.handler.SimpleUrlHandlerMapping : Mapped to ParameterizableViewController [view="forward:/graphiql/index.html"] 2024-03-04T16:46:01.232+08:00 DEBUG 35787 --- [nio-8080-exec-1] o.s.w.s.v.ContentNegotiatingViewResolver : Selected 'text/html' given [text/html, application/xhtml+xml, image/avif, image/webp, image/apng, application/xml;q=0.9, */*;q=0.8, application/signed-exchange;v=b3;q=0.7] 2024-03-04T16:46:01.232+08:00 DEBUG 35787 --- [nio-8080-exec-1] o.s.w.servlet.view.InternalResourceView : View name 'forward:', model {} 2024-03-04T16:46:01.234+08:00 DEBUG 35787 --- [nio-8080-exec-1] o.s.w.servlet.view.InternalResourceView : Forwarding to [/graphiql/index.html] 2024-03-04T16:46:01.239+08:00 DEBUG 35787 --- [nio-8080-exec-1] o.s.web.servlet.DispatcherServlet : "FORWARD" dispatch for GET "/graphiql/index.html", parameters={} 2024-03-04T16:46:01.241+08:00 DEBUG 35787 --- [nio-8080-exec-1] o.s.w.s.handler.SimpleUrlHandlerMapping : Mapped to ResourceHttpRequestHandler [classpath [graphiql/]] 2024-03-04T16:46:01.247+08:00 DEBUG 35787 --- [nio-8080-exec-1] o.s.web.servlet.DispatcherServlet : Exiting from "FORWARD" dispatch, status 304 2024-03-04T16:46:01.248+08:00 DEBUG 35787 --- [nio-8080-exec-1] o.s.web.servlet.DispatcherServlet : Completed 304 NOT_MODIFIED
,the websit is white,nothing shows。
I change to use postman to run the graphql query demo,it can returns data。
I want to know that this is a bug or I use dgs in wrong way。
thanks for everyone who can answer me
spring boot application.properties:
logging.level.root=debug spring.graphql.graphiql.enabled=true spring.graphql.graphiql.path=/graphiql spring.graphql.schema.printer.enabled=true
maven pom:
`
4.0.0
org.springframework.boot
spring-boot-starter-parent
3.2.3
cn.graphql
graphql-demo
0.0.1-SNAPSHOT
graphql-demo
graphql-demo
<java.version>17</java.version>
com.netflix.graphql.dgs
graphql-dgs-platform-dependencies
8.4.0
pom
import
schema define (resources/schema/schema.graphqls)
`type Query {
shows(titleFilter: String): [Show]
}
type Show {
title: String
releaseYear: Int
}`
Beta Was this translation helpful? Give feedback.
All reactions