多应用+插件架构,代码干净,二开方便,首家独创一键云编译技术,文档视频完善,免费商用码云13.8K 广告
~~~ @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); } } ~~~