You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
@Getter
@Setter
@ToString
public class EntityFirst {
private EntitySecond second;
}
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
@Getter
@Setter
@ToString
public class EntityFirst {
private EntitySecond second;
}
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
@Getter
@Setter
@ToString
public class EntityLoop {
private EntityLoop loop;
}
public class FakerObjectTest {
public static void main(String[] args) {
User user = DataUtil.build(User.class);
System.out.println(user.toString());
EntityFirst first = DataUtil.build(EntityFirst.class);
System.out.println(first.toString());
EntityLoop loop = DataUtil.build(EntityLoop.class);
System.out.println(loop.toString());
}
}
The text was updated successfully, but these errors were encountered:
对象存在环形引用时会出现栈溢出,示例代码如下:
The text was updated successfully, but these errors were encountered: