SpringBoot 单元测试注解配置

@RunWith(SpringRunner.class)
@SpringBootTest(classes = ApiApplication.class) //启动类文件
public class test {
   //test 这个包下的  import org.junit.Test;
@Test public void test(){  } 
}

 

posted on 2021-07-05 16:15  简易代码  阅读(64)  评论(0)    收藏  举报