我提出了一个请求,当我直接在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);
我能做什么?请:)
尝试将spring.mvc.async.request-timeout属性设置为 -1。这样,您将在应用程序中禁用超时约束。