class UserServiceImpl implements UserService {

    @Override
    public void save(User user) {
        user.setPassword(DigestUtils.md5Hex(user.getPassword()));
        user.setCreatedTime(System.currentTimeMillis());
        userRepository.save(user);
    }

}