Spring Boot MyBatis 报错 IndexOutOfBoundsException

MyBatis Spring Boot About 108 words

错误原因

实体类上使用了@Builder或者@AllArgsConstructor或者指定的构造函数,但属于又没有与数据库的字段完全一致(可能省略了某些字段)

解决方法

去掉上述注解,使用Setter方法,逐一赋值。

Views: 342 · Posted: 2024-05-24

————        END        ————

Give me a Star, Thanks:)

https://github.com/fendoudebb/LiteNote

扫描下方二维码关注公众号和小程序↓↓↓

扫描下方二维码关注公众号和小程序↓↓↓


Today On History
Browsing Refresh