MockMvc 类的perform方法会返回一个ResultAction类,可以对结果进行一些操作(andExpect、andDo和andReturn)。 @RunWith(SpringRunner.class); @WebMvcTest( ...
確定! 回上一頁