![](https://img-blog.csdnimg.cn/20201014180756780.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
JPA
秤秤biubiu
me,you---喵
展开
-
Caused by: java.lang.StackOverflowError: null 的解决办法
灵感源于这个:https://blog.csdn.net/Hello_World_QWP/article/details/81353365?utm_source=blogxgwz3 原因是我在给前端做接口的时候,springboot+jpa,返回json对象,对象里面比较复杂,还掺杂了一个manytoone,导致了异常出现。改掉就解决了! ...原创 2020-01-15 15:54:19 · 8030 阅读 · 2 评论 -
Mixed parameter strategies - use just one of named, positional or JPA-ordinal strategy
昨晚做jpa分页时候报出的一个错误,又是一顿苦苦查找,网上资料非常少,有的说是占位符的问题,再一看我做分页的sql是这么写的, .......... d on a.OUT_STATION_NO=d.STATION_NO where a.USER_ID := userId order by ?#{#pageable}", nativeQuery = true) 关键点在于红色部分,改为...原创 2019-10-17 14:11:25 · 4317 阅读 · 0 评论 -
JPA分页
Repository: @Query(value = "........where a.USER_ID = ?1", nativeQuery = true) List<TravelGet> findByUserId(Long userId, Pageable pageable); service: Pageable pageable = null; Sort so...原创 2019-10-17 15:08:37 · 153 阅读 · 0 评论