我尝试按ASC顺序在表上使用Spring-Data-JPA创建应用程序,但它给了我一个错误: 1 i- x5 W. ?, a" n0 r5 `0 m' UInvalid derived query! No property asc found for type java.util.Calendar 0 p; r6 l# H- S& p$ v' E为什么 ? $ c2 {$ Y; Z, OList findAllOrderByDateAsc(); 2 d' a, f% r( M7 B: N& o# a或者' h4 k' [. e) N+ L8 Z$ q# c" O
@Query("SELECT * FROM foo ORDER BY date ASC")& J6 S T. J0 C! t7 z
List findAllOrderByDateAsc();2 I4 j0 @( z' k
; H8 ], h: o3 q 解决方案:6 K! B. V! L# v' V2 ]