我正在使用对MongoDB geo结果进行分页。下面是相关代码(使用MongoTemplate):query.addCriteria(where("location").nearSphere(new(although the total number of records is much bigger than the page size)
List<MyObject> myObjects = mongoTemplate.find顺便说
每次尝试使用Spring Data REST和MongoDB创建项目时,都会遇到同样恼人的问题。尝试访问REST端点的每个测试都会产生由PersistentEntityResource构建器方法抛出的java.lang.IllegalArgumentException: PersistentEntity这意味着当启动应用程序上下文并初始化RepositoryRestMvcConfiguration时,PersistentEntities bean是空的。mongoTemplate