1. 程式人生 > >springboot 1.5.X junit測試

springboot 1.5.X junit測試

imp ati boot wired actor span class code unit

import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;

@RunWith(SpringRunner.class)
@SpringBootTest(classes = Application.class)
public
class Test { @org.junit.Test public void test() { } }

springboot 1.5.X junit測試