Springboot webController UnitTest
Springboot webController UnitTesthow to test web api in unit test?– use mockMVC and springbootTest@RunWith(SpringRunner.class)@SpringBootTest@EnableWebMvc@AutoConfigureMockMvcpublic class WebServiceTest extends TestCase { @Resource priva
原创
2020-05-28 14:26:02 ·
195 阅读 ·
0 评论