2017-07-27 56 views
0

我收到以上错误。我也导入了所有必需的文件。谁能帮我这个。方法桶(字符串)是未定义的类型SubmissionRepositoryImpl

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(); 
    } 

enter image description here

回答

0

由POM文件从1.4.1.RELEASE更新org.springframework.boot版本1.5.3.RELEASE解决。

相关问题