注解@SpringBootTest 配置
webEnvironment = SpringBootTest.WebEnvironment.DEFINED_PORT
@RunWith(SpringJUnit4ClassRunner.class)
@SpringBootTest(classes = Application.class, webEnvironment = SpringBootTest.WebEnvironment.DEFINED_PORT)
public class SpringBootApplicationTest {
}