1
0
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:
slievrly 2020-01-14 15:32:40 +08:00
parent f36c94d3ed
commit d040d6a3b7

View File

@ -92,7 +92,7 @@ public class HomeController {
response = restTemplate.postForEntity(url, request, String.class);
}
catch (Exception exx) {
return "mock error";
throw new RuntimeException("mock error");
}
result = response.getBody();
if (!SUCCESS.equals(result)) {