这应该工作:
@SqlQuery("select id from foo where name in (<nameList>)")List<Integer> getIds(@BindIn("nameList") List<String> nameList);不要忘记用以下方法注释包含此方法的类:
@UseStringTemplate3StatementLocator
注解(因为JDBI底层使用Apache StringTemplate进行此类替换)。还要注意,使用此注释,您不能在SQL查询中使用’<’字符而不进行转义(因为它是StringTemplate使用的特殊符号)。



