【发布时间】:2018-06-03 02:42:50
【问题描述】:
当我使用下面的代码时,出现HttpStatusCodeException 异常的情况是什么。
ResponseEntity<Object> response =
restTemplate.exchange(builder.build().encode().toUri(), HttpMethod.GET, entity, Object.class);
有谁能帮忙吗??????
【问题讨论】:
-
我需要创建引发 HttpStatusCodeException 的案例。
标签: java spring rest httpexception