Passing List in @RequestHeader Restapi

Tags: , ,

I want to pass list of string in my controller via Request Header @RequestHeader("list") final List<String> listOfString. Can this be used. How can I pass list of string in header via Postman?

list={item1,item2,item3}. This is not working while I want to test via Postman. Is there any way?


You can add the header this way

enter image description here

In the headers tab, just add it with comas.

Source: stackoverflow