SettingController { @PostMapping(value="/updatesystemsetting") public ResBodyData updatesystemsetting(@Validated EcmSystemSetting systemSetting) { EcmSystemSetting ecmSystemSetting = settingService.updatesystemsetting(systemSetting); return SettlementUtil.success(ecmSystemSetting); }  @PostMapping(value="/updatesystemsetting") ResBodyData updatesystemsetting(@Validated EcmSystemSetting systemSetting); @PostMapping(value="/listsystemsetting") ResBodyData listsystemsetting(EcmSystemSetting systemSetting);  }
@Test public void testUpdatesystemsetting() throws Exception { ResultActions results = mockMvc .perform(MockMvcRequestBuilders .post("/settlementservice/settingservice/v1/updatesystemsetting") .param("value", "3").param("state", "1").param("scode", "person_shareprofit_rate")) .andExpect(status().isOk()); results.andDo(new ResultHandler() { @Override public void handle(MvcResult result) throws Exception { System.out.println("*********" + result.getResponse().getContentAsString()); } }); }