文章目录 Mock代码 Mock代码 MockHttpServletRequest request = new MockHttpServletRequest(); request.setParameter("key", "value"); Class c = new Class(