springboot 2.1.x及2.2.x+,jpa in操作对空集合的处理有差异

当传入空的集合时,

2.1.x版本,生成的sql会是 in ()。引发报错。

而2.2.x+版本为 in (null)。能正常执行,所以若无限制,尽量使用2.2或更高的版本

Leave a Reply

Your email address will not be published. Required fields are marked *

lWoHvYe 无悔,专一