JPA query creation order by

后端 未结 4 1558
孤城傲影
孤城傲影 2021-02-18 22:07

I\'m trying to learn Spring on my own, and I\'m planning to do that by creating a blog web app. I already have the basic blog functionality working, which is a page to display b

4条回答
  •  后悔当初
    2021-02-18 22:22

    I know it's a bit late but this may help others.

    Just put BY before ORDER, like this: findAllByOrderByIdDesc

    It should work.

提交回复
热议问题