private User(){}
private static final User u = new User();
public static User getUser(){
return u;
}
单例
最新推荐文章于 2021-08-02 14:42:01 发布
private User(){}
private static final User u = new User();
public static User getUser(){
return u;
}