JPA原生SQL(自定義SQL)分頁查詢邏輯

JPA本身寫SQL查詢的話,分頁還稍微麻煩,通過測試下面方法能夠:測試 @Query(nativeQuery = true, value = "select * from goods where " + " codeName like CONCAT('%',?1,'%') and order by ?w#{#pageable}") Page<Goods> find
相關文章
相關標籤/搜索