spring的测试类注解:
@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration(locations = "classpath:applicationContext.xml")
SpringBoot测试类注解
@RunWith(SpringRunner.class)
@SpringBootTest(classes = StartUpApplication.class)
spring的测试类注解:
@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration(locations = "classpath:applicationContext.xml")
SpringBoot测试类注解
@RunWith(SpringRunner.class)
@SpringBootTest(classes = StartUpApplication.class)