@Test
public void testCache() {
Long id = 1L;
User user = new User(id, "zhang", "zhang@gmail.com");
userService.save(user);
//一定要复制一个 否则cache了(因为同一个JVM测试的)
User user2 = new User(id, "zhang2", "zhang@gmail.com");
userService.conditionUpdate(user2);
userService.findById(id);
userService.findByUsername("zhang2");