...
|
...
|
@@ -106,11 +106,11 @@ public class CenterSwitchCtrl { |
|
|
}
|
|
|
result1 = mysqlResponse.getData();
|
|
|
result1 = "mysql切换结果:"+result1;
|
|
|
try{
|
|
|
/* try{
|
|
|
Thread.sleep(5000);//数据库切换需要时间,等待5秒钟吧
|
|
|
}catch (Exception e){
|
|
|
|
|
|
}
|
|
|
}*/
|
|
|
//第二步:查看第一步的执行的状态
|
|
|
result2 = httpRestClientService.postForObject(SWITCH_DB_URL+"/checkStatus", null, String.class);
|
|
|
}else{
|
...
|
...
|
|