使用mongoTemplate.aggregate来进行查询

错误信息:The 'cursor' option is required, except for aggregate with the explain argument 

 

我本来使用的pom配置如下:

<parent>
   <groupId>org.springframework.boot</groupId>
   <artifactId>spring-boot-starter-parent</artifactId>
   <version>1.5.4.RELEASE</version>
   <relativePath />
</parent>

然后改成:

<parent>
   <groupId>org.springframework.boot</groupId>
   <artifactId>spring-boot-starter-parent</artifactId>
   <version>1.5.10.RELEASE</version>
   <relativePath />
</parent>

发现问题解决了

原文:https://blog.csdn.net/a1491918446/article/details/79468168

Logo

欢迎加入DeepSeek 技术社区。在这里,你可以找到志同道合的朋友,共同探索AI技术的奥秘。

更多推荐