@Test public void testFindById() { String id = "{}"; User user = userService.findById(id); assertEquals(user.getId(), id); }
@Override @Cacheable(value = ENTITY_NAME, key = "#id", unless = "#result == null") public User findById(String id) { return super.findById(id); }
UserService extends AbstractUserService implements UserDetailsService { @Override @Cacheable(value = ENTITY_NAME, key = "#id", unless = "#result == null") public User findById(String id) { return super.findById(id); } }
UserService extends AbstractUserService implements UserDetailsService { @Override @Cacheable(value = ENTITY_NAME, key = "#id", unless = "#result == null") public User findById(String id) { return super.findById(id); }  }
UserService extends AbstractUserService implements UserDetailsService { @Override @Cacheable(value = ENTITY_NAME, key = "#id", unless = "#result == null") public User findById(String id) { return super.findById(id); }  @Override @CachePut(value = ENTITY_NAME, key = "#result.id", unless = "#result == null") boolean beforeSave(User user); @Override @Cacheable(value = ENTITY_NAME, key = "#id", unless = "#result == null") User findById(String id); @Override UserDetails loadUserByUsername(String username); User findByUsername(String username); User register(User user); User setRoles(String userId, String[] roleIds); User getCurrentUser(); Collection<? extends String> getCurrentUserAuthorities(); }
UserService extends AbstractUserService implements UserDetailsService { @Override @Cacheable(value = ENTITY_NAME, key = "#id", unless = "#result == null") public User findById(String id) { return super.findById(id); }  @Override @CachePut(value = ENTITY_NAME, key = "#result.id", unless = "#result == null") boolean beforeSave(User user); @Override @Cacheable(value = ENTITY_NAME, key = "#id", unless = "#result == null") User findById(String id); @Override UserDetails loadUserByUsername(String username); User findByUsername(String username); User register(User user); User setRoles(String userId, String[] roleIds); User getCurrentUser(); Collection<? extends String> getCurrentUserAuthorities();  }