提交 4cfd4bf4 编写于 作者: IBZGIT01's avatar IBZGIT01

ibizdev提交

上级 e832a51f
...@@ -27,7 +27,8 @@ public class ApplicationTest { ...@@ -27,7 +27,8 @@ public class ApplicationTest {
public void testMain() { public void testMain() {
try { try {
MvcResult mvcResult = mockMvc.perform(MockMvcRequestBuilders.post("/demo/springmvc/dbet/maineditform/get")).andReturn(); MvcResult mvcResult = mockMvc.perform(MockMvcRequestBuilders.post("/demo/springmvc/dbet/maineditform/get")).andReturn();
System.out.println(String.format("返回状态码为:[%s],返回内容为[%s]",mvcResult.getResponse().getStatus(),mvcResult.getResponse().getContentAsString())); System.out.println("----正在调用实体controller----");
System.out.println("返回结果为:"+mvcResult.getResponse().getContentAsString());
} catch (Exception e) { } catch (Exception e) {
e.printStackTrace(); e.printStackTrace();
} }
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册