I have the below list
ArrayList<String> list1=new ArrayList<String>();
list1.add("abc");
list1.add("bdc");
list1.add("acr");
list1.add("bde");
I wanted to use this list in a select query like below
select * from emp where emp_name in ('abc','bdc','acr','bde')
I am using spring boot rest template and tried with ArrayList paramsList =new ArrayList() but it failed. Is there a easy way to do instead of converting into a string by iteration.