idea可以右键-goto生成测试类,但是需要注意:
@RunWith(SpringRunner.class) @SpringBootTest @ContextConfiguration(classes = Application.class)