我正在尝试使用 GraphQL 在 spring-boot 上运行空项目,但出现以下错误。
2022-01-03 12:33:11.440 ERROR 12944 --- [ main] o.s.b.d.LoggingFailureAnalysisReporter :
***************************
APPLICATION FAILED TO START
***************************
Description:
Could not find any GraphQL schema file under configured locations.
Action:
Check that the following locations contain schema files:
- '' (classpath:graphql/**/)
Run Code Online (Sandbox Code Playgroud)
依赖项:
方案 - /resources/schema.graphqls:
type Query {
bookById(id: ID): Book
}
type Book {
id: ID
name: String
pageCount: Int
author: Author
}
type Author {
id: ID
firstName: String
lastName: String
}
Run Code Online (Sandbox Code Playgroud)
是否有配置错误?
我使用Spring-boot-3 @GetExchangea WebClient,有时会遇到以下错误:
java.lang.IllegalStateException: Timeout on blocking read for 5000000000 NANOSECONDS
Run Code Online (Sandbox Code Playgroud)
如果使用来@GetExchange指示WebClient重试,最佳实践是什么?这个新注释没有足够的文档。