在调用restTemplate.postForObject的时候报错URI is not absolute

URI is not absolute
	at java.net.URI.toURL(URI.java:1088) ~[na:1.8.0_301]
	at org.springframework.http.client.SimpleClientHttpRequestFactory.createRequest(SimpleClientHttpRequestFactory.java:145) ~[spring-web-5.2.12.RELEASE.jar:5.2.12.RELEASE]
	at org.springframework.http.client.support.HttpAccessor.createRequest(HttpAccessor.java:124) ~[spring-web-5.2.12.RELEASE.jar:5.2.12.RELEASE]

需要使用完整路径,在url前面加上http://

相关文章:

  • 2021-04-18
  • 2021-04-10
  • 2021-11-26
  • 2022-12-23
  • 2021-10-04
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-10-06
  • 2021-11-05
  • 2022-12-23
相关资源
相似解决方案