public class User implements Serializable { private Object lock = new Object(); public void get(){ synchronized (lock){ } } }
相关分类