Repository查询报错

发布于 / bug飞 / 0条评论 / Tags: java,springcloud / 3 次浏览

org.springframework.data.repository.query.ParameterOutOfBoundsException: Invalid parameter index! You seem to have declared too little query method parameters!

原因是没有少了个By,30后面必须有by

Flux<MySeries> findTop30ByOrderByRatingDesc();

    评论区(暂无评论)