首先检查配置
spring.JPA.show-SQL=truespring.JPA.properties.hibernate.hbm2DDL.auto=update注释
@ data @ entity @ table (name=' comment _ reply ' ) publicclasscommentsreplyimplementsserializable { /父注释的主键id @ idpriprid
@ entity scan (com.TL 666.com ments.POJO ) enableautoconfiguration @ springbootapplication ) exclude={数据来源操作} (publicclasscommentsapplication )在注释了publicstaticvoidmain (string [ ] args ) springapplication }之后,控制台报告了错误。
couldnotdeterminetypefor : Java.util.list,at table: comments_root,for columns 3360 [ org.hibernate.mapping ]
@ onetomanyprivatelistcommentsreplylistcommentsreply;