合规国际互联网加速 OSASE为企业客户提供高速稳定SD-WAN国际加速解决方案。 广告
~~~ @RunWith(SpringRunner.class) @SpringBootTest public class CommonApplicationTests { @Autowired private PersonDao personDao; @Test public void testAdd() { Person p = new Person(); p.setName("测试111"); p.setAge(11); personDao.save(p); } @Test public void testFindOne() { Person person = personDao.findById(1).get(); System.out.println(person); } @Test public void testFindAll() { List<Person> persons = personDao.findAll(); System.out.println(persons); } } ~~~