Use junit unit test cases found success with the following operating, but no new data in the database, view the run log Rolled back transaction for test
and found things automatically rolled back by adding @Rollback(value = false)
submit to force things.
@Test
@Transactional
// @Rollback(value = false)
public void insert() {
String name = "dkangel";
userMapper.insert(name, "123", "123");
User u = userMapper.findUserByPhone("123");
Assert.assertEquals(name, u.getName());
}