springboot 测试类

import org.junit.runner.RunWith;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;
@Runwith(SpringRunner.class)

@SpringBootTest(classes=Application.class)

public class springBootTest{

  @Test

  public void test(){

    System.err.println("springboot test!!");

  }

}

posted @ 2018-05-18 09:10  南城北国  阅读(163)  评论(0)    收藏  举报