首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >未定义类型SubmissionRepositoryImpl的方法存储桶(字符串

未定义类型SubmissionRepositoryImpl的方法存储桶(字符串
EN

Stack Overflow用户
提问于 2017-07-27 15:42:19
回答 1查看 233关注 0票数 0

我得到了以上的错误。我也导入了所有需要的文件。有人能帮我解决这个问题吗?

代码语言:javascript
复制
public List<ScoreCount> scoreCount(String courseId, String assignmentId){
        Aggregation agg = newAggregation(
                match(Criteria.where("_id.courseId").is(courseId).and("_id.assignmentId").is(assignmentId)),
                bucket("overRollScore").withBoundaries(0, 20, 50, 70, 100).andOutput("score").push().as("gradeCount"));

        AggregationResults<ScoreCount> averageScore = mongoTemplate.aggregate(agg, Submission.class, ScoreCount.class);

        return averageScore.getMappedResults();
    }

EN

回答 1

Stack Overflow用户

发布于 2017-07-27 16:07:39

通过在POM文件中将org.springframework.boot版本从1.4.1.RELEASE更新到1.5.3.RELEASE解决。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/45344359

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档