怎么用mongoTemplate写mongodb的聚合查询
怎么用mongoTemplate写mongodb的聚合查询
Criteria criteria = new Criteria().andOperator(
Criteria.where("createDate").gte(dateFormat.parseObject("2014-10-01 00:00:00")), 
Criteria.where("createDate").lt(dateFormat.parseObject("2014-11-01 00:00:00"))
)
mongoTemplate.group(criteria, "collectionName", new GroupBy("GroupField"), entityClass)
    org.mongodb
    mongo-java-driver
    2.12.