java.lang.IllegalArgumentException: Expected unique result or null, but got more than one! - Spring Data Mongo

前端 未结 2 1745
逝去的感伤
逝去的感伤 2021-01-16 23:38

I\'m usingSpring Boot v2.2.2.RELEASE and Spring Data MongoDB. In this example, I am looking perform group by department code and get all employees

2条回答
  •  天命终不由人
    2021-01-17 00:08

    Aggregations on repository methods do not support the Page return type. Please have a look at the Reference Documentation for supported return types (eg. List).

    I created DATAMONGO-2506 to improve the error message in that case.

提交回复
热议问题