第二步 设定类运行器junit junit4.12 test org.springframework spring-test5.2.10.RELEASE
@Runwith( SpringJUnit4classRunner.class)
@ContextConfiguration(classes = SpringConfig.class)
public class AccountServiceTest {
@Autowired
private AccountService accountService;
@Test
public void testFindById()
system.out.println( accountService.findById(1));
}



