首页 > 编程知识 正文

无法升级数据库,因为它是只读的(sql文件导入navicat 一直错误)

时间:2023-05-04 20:43:52 阅读:71451 作者:4789

首先检查配置

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;

版权声明:该文观点仅代表作者本人。处理文章:请发送邮件至 三1五14八八95#扣扣.com 举报,一经查实,本站将立刻删除。