使用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

汇聚全球AI编程工具,助力开发者即刻编程。

更多推荐