All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.dawn9117.rlock.service.UserService Maven / Gradle / Ivy

There is a newer version: 1.1.0
Show newest version
package com.github.dawn9117.rlock.service;

import com.github.dawn9117.rlock.annotation.Rlock;
import com.github.dawn9117.rlock.dao.User;
import org.springframework.stereotype.Service;

/**
 * @author HEBO
 */
@Service
public class UserService implements IUserService {


	@Rlock(keys = "#user.name")
	@Override
	public User add(User user) {
		try {
			Thread.sleep(40000);
		} catch (InterruptedException e) {
			e.printStackTrace();
		}
		System.out.println("add:" + user);
		return user;
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy