The 'cursor' option is required, except for aggregate with the explain argument 错误处理

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

猜你喜欢

转载自blog.csdn.net/qq_31868149/article/details/82912596
今日推荐