package org.springframework.issues; import org.springframework.stereotype.Controller; import org.springframework.util.StringUtils; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMethod; import org.springframework.web.bind.annotation.RequestParam; import org.springframework.web.bind.annotation.ResponseBody; @Controller public class TestController { @RequestMapping(value = "/test", method = RequestMethod.GET) @ResponseBody public String test(@RequestParam(value = "fq", required = false) String[] filterQuery) { return "fq = " + StringUtils.arrayToDelimitedString(filterQuery, "|"); } }