mirror of
https://gitee.com/mirrors/Spring-Cloud-Alibaba.git
synced 2021-06-26 13:25:11 +08:00
throw exception
Signed-off-by: slievrly <slievrly@163.com>
This commit is contained in:
parent
f36c94d3ed
commit
d040d6a3b7
@ -92,7 +92,7 @@ public class HomeController {
|
|||||||
response = restTemplate.postForEntity(url, request, String.class);
|
response = restTemplate.postForEntity(url, request, String.class);
|
||||||
}
|
}
|
||||||
catch (Exception exx) {
|
catch (Exception exx) {
|
||||||
return "mock error";
|
throw new RuntimeException("mock error");
|
||||||
}
|
}
|
||||||
result = response.getBody();
|
result = response.getBody();
|
||||||
if (!SUCCESS.equals(result)) {
|
if (!SUCCESS.equals(result)) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user