Java Spring引导Rest API JSON返回null
我有REST控制器将分数提交到数据库@Requestbody是一个游戏对象。从玩家中删除@JsonIgnoreJava Spring引导Rest API JSON返回null,java,json,spring,spring-mvc,Java,Json,Spring,Spring Mvc,我有REST控制器将分数提交到数据库@Requestbody是一个游戏对象。从玩家中删除@JsonIgnore @ManyToOne @JoinColumn(name = "playerId") private Player player; 谢谢你把它修好了!请下次添加更多关于您的问题的信息….:嗨,多马!为什么要删除代码?
@ManyToOne
@JoinColumn(name = "playerId")
private Player player;
谢谢你把它修好了!请下次添加更多关于您的问题的信息….:嗨,多马!为什么要删除代码?