Issue
please let me know is there any advantage of using just string instead of URI uri = new URI(String) while doing resttemplate call
Solution
Sure, it validates the string supplied and it throws IllegalArugumentException If the given string violates RFC 2396. So prevalidations would happen beforehand!
Answered By - kma
Answer Checked By - Marilyn (JavaFixing Volunteer)