Authored by qinchao

线下店nginx切换

... ... @@ -17,13 +17,13 @@ import java.util.Map;
* @author craig.qin 2018-1-10
*/
@Controller
@RequestMapping("storeSwitch")
@RequestMapping("/storeSwitch")
public class StoreSwitchCtrl {
@Autowired
HttpRestClient httpRestClient;
@RequestMapping(value = "toStoreSwitch")
@RequestMapping(value = "/toStoreSwitch")
public ModelAndView toStoreSwitch() {
ModelAndView mdv = new ModelAndView("storeSwitch/storeswitch");
return mdv;
... ... @@ -33,7 +33,7 @@ public class StoreSwitchCtrl {
* 展示配置文件信息
*
*/
@RequestMapping(value = "viewStoreNginxCurrentConf")
@RequestMapping(value = "/viewStoreNginxCurrentConf")
@ResponseBody
public BaseResponse viewStoreNginxCurrentConf() {
return httpRestClient.defaultGet( "/storeSwitch/viewStoreNginxCurrentConf", BaseResponse.class, null);
... ... @@ -43,7 +43,7 @@ public class StoreSwitchCtrl {
* 解析当前配置,绘图用
*
*/
@RequestMapping(value = "getStoreNginxStatus")
@RequestMapping(value = "/getStoreNginxStatus")
@ResponseBody
public BaseResponse getStoreNginxStatus() {
return httpRestClient.defaultGet( "/storeSwitch/getStoreNginxStatus", BaseResponse.class, null);
... ... @@ -54,7 +54,7 @@ public class StoreSwitchCtrl {
* 切换结果预览
*
*/
@RequestMapping(value = "viewStoreNginxToChangeConf")
@RequestMapping(value = "/viewStoreNginxToChangeConf")
@ResponseBody
public BaseResponse viewStoreNginxToChangeConf(String serviceType, String onlineOrGray) {
Map<String, String> map=new HashMap<>();
... ... @@ -67,7 +67,7 @@ public class StoreSwitchCtrl {
* 确定切换
*
*/
@RequestMapping(value = "switchStoreNginx")
@RequestMapping(value = "/switchStoreNginx")
@ResponseBody
public BaseResponse switchStoreNginx(String confContent) {
return httpRestClient.defaultPost("/storeSwitch/switchStoreNginx",confContent,BaseResponse.class);
... ...