How do I extract the parameters from a String that is URL Encoded?.
Given I have the ff. that I have already extracted and decrypted from a request.
Param1=Value1&Param2=Value2&Param3=Value3
I want to be able to get individual parameters such that I could selective get parameters values like Param1 = Value1 Param3 = Value3
And not get Param2
The same question was already asked for Android here
But the library could not be imported in Spring. Any other library in spring that could do this functionality?. TIA.
You simply need to specify this attributes in parameters method, for example:
@GetMapping("/teste")
public List<String> myMethod(String Param1, String Param2, String Param3) {
...
}
Good luck!!!
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.