private User(){}
private static final User u = new User();
public static User getUser(){
return u;
}
单例
最新推荐文章于 2022-04-22 11:29:36 发布
private User(){}
private static final User u = new User();
public static User getUser(){
return u;
}