
Mixed parameter strategies
昨晚做jpa分页时候报出的一个错误,又是一顿苦苦查找,网上资料非常少,有的说是占位符的问题,再一看我做分页的sql是这么写的,
.......... d on a.OUT_STATION_NO=d.STATION_NO where a.USER_ID := userId order by ?#{#pageable}", nativeQuery = true)
关键点在于红色部分,改为:解决!
........... d on a.OUT_STATION_NO=d.STATION_NO where a.USER_ID = ?1 order by ?#{#pageable}", nativeQuery = true)👁️ 阅读量:0
© 版权声明:本文《Mixed parameter strategies》内容均为本站精心整理或网友自愿分享,如需转载请注明原文出处:https://www.zastudy.cn/wen/1686590468a300527.html。