1. 程式人生 > >The 'cursor' option is required, except for aggregate with the explain argument 錯誤處理

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>

發現問題解決了