SpringJPA中自定义sql的参数传递问题
Anoth 2015-11-05 02:45:58 @Query(value="select * from tb_userinfo where account not in (:accounts)",nativeQuery=true)
List<Object> personRegisterRecords(@Param("accounts")String accounts);
用这样的方式查询,accounts如果是单个账号时可以,但是多个账号以'aaa','bbb' 的字符串传入则无效。把参数改成String[] 类型也不行。那么in()里面的参数应该如何传递呢?