java – Uri not Absolute exception getting while calling Restful Webservice
java – Uri not Absolute exception getting while calling Restful Webservice
An absolute URI specifies a scheme; a URI that is not absolute is said to be relative.
http://docs.oracle.com/javase/8/docs/api/java/net/URI.html
So, perhaps your URLEncoder isnt working as youre expecting (the https bit)?
URLEncoder.encode(uri)
The problem is likely that you are calling URLEncoder.encode() on something that already is a URI.
java – Uri not Absolute exception getting while calling Restful Webservice
For others who landed in this error and its not 100% related to the OP question, please check that you are passing the value and it is not null in case of spring-boot: @Value annotation.