Search
 
SCRIPT & CODE EXAMPLE
 

JAVA

pass a list of string as PathVariable to api spring boot

GET http://localhost:8080/public/test/1,2,3,4

@RequestMapping(value="/test/{firstNameIds}", method=RequestMethod.GET)
@ResponseBody
public String test(@PathVariable String[] firstNameIds)
{
    // firstNameIds: [1,2,3,4]
    return "Dummy"; 
}
Comment

PREVIOUS NEXT
Code Example
Java :: java.lang.ClassNotFoundException: javax.servlet.jsp.jstl.core.Config 
Java :: Implementing the ArrayList Class in java list 
Java :: new thrad java 
Java :: localdate to string java 
Java :: jdialog middle of screen 
Java :: java sort arraylist of floats 
Java :: java android build secret keys 
Java :: encoding utf 
Java :: could not find java in a java_home at /opt/java/openjdk/bin/java docker sonarqube 
Java :: object creation in java 
Java :: Number formatting java with locale 
Java :: find the unique element in a list java 
Java :: give ram to java 
Java :: model mapper to list stream 
Java :: change attributes of player spigot 
Java :: java stream map int to char 
Java :: export java path in ubuntu 
Java :: list of strings java 
Java :: hashmap put 
Java :: android list newline 
Java :: 7877777777777777777777777 
Java :: jpql spring boot 
Java :: java long data type 
Java :: UPLOAD TEXTFILE USING CYPERTEXT USING JAVA 
Java :: scaletype android dynamic 
Java :: java continue statement 
Java :: how to change fragment on button click navigation drawer 
Java :: how to take binary input in java 
Java :: custom dialog in android 
Java :: Java How to use Deque? 
ADD CONTENT
Topic
Content
Source link
Name
9+2 =