我做了一个请求,当我直接在Mongo中执行它时,它会很快给出一个结果,当我用SpringData执行代码时,它会给我AsyncRequestTimeoutException (即使在使用了索引之后,问题仍然存在)。
查询:
@Query("{ $or: [{\"product.adr.structures\": { $elemMatch : {\"_id\":?0 , \"depth\" : ?1 }}} , {\"product.ecat.structures\": { $elemMatch : {\"_id\":?0 , \"depth\" : ?1 }}}]}")
Flux<ProductHawk> findByStructureLevel(String structureLevelId , Integer structureLevelType);我能做些什么?请:)
发布于 2019-10-10 17:08:16
尝试将spring.mvc.async.request-timeout属性设置为-1。这样,您就可以在应用程序中禁用超时约束。
https://stackoverflow.com/questions/58319044
复制相似问题