mirror of
https://gitee.com/mirrors/Spring-Cloud-Alibaba.git
synced 2021-06-26 13:25:11 +08:00
@@ -18,9 +18,7 @@ package com.alibaba.cloud.examples;
|
||||
|
||||
import com.alibaba.cloud.examples.BusinessApplication.OrderService;
|
||||
import com.alibaba.cloud.examples.BusinessApplication.StorageService;
|
||||
|
||||
import io.seata.spring.annotation.GlobalTransactional;
|
||||
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
||||
@@ -92,7 +90,8 @@ public class HomeController {
|
||||
ResponseEntity<String> response;
|
||||
try {
|
||||
response = restTemplate.postForEntity(url, request, String.class);
|
||||
} catch (Exception exx) {
|
||||
}
|
||||
catch (Exception exx) {
|
||||
return "mock error";
|
||||
}
|
||||
result = response.getBody();
|
||||
@@ -123,4 +122,4 @@ public class HomeController {
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
@@ -20,4 +20,4 @@ seata.service.disable-global-transaction=false
|
||||
## if use config center
|
||||
#seata.config.type=apollo
|
||||
#seata.config.apollo.apollo-meta=http://192.168.1.204:8801
|
||||
#seata.config.apollo.app-id=seata-server
|
||||
#seata.config.apollo.app-id=seata-server
|
||||
|
Reference in New Issue
Block a user