问题:

spring data getById 取不到数据,但是数据库是有的

 

解决:

分析 sql 发现有 inner join 操作,将对应 @ManyToOn(optional) 改为 fasle

发表评论

电子邮件地址不会被公开。