在学习hibernate过程中,配置hibernate,使用的是hibernate-release-5.4.8.Final,复制etc目录下的文档类型声明,运行总提示“根元素类型 “hibernate-configuration” 的文档类型声明必须以 ‘>’ 结尾。”,尝试正确的格式为“”。
解决以上问题后,运行过程中又出现“The reference to entity “characterEncoding” must end with the ‘;’ delimiter.”,将“jdbc:mysql://localhost:3306/db_database10?useUnicode=true&characterEncoding=UTF8&serverTimezone=UTC”中的&修改成 &,以上正确格式为“ jdbc:mysql://localhost:3306/db_database10?useUnicode=true &characterEncoding=UTF8 &serverTimezone=UTC”
Hibernate cfg文档类型错误
最新推荐文章于 2022-10-11 11:13:28 发布
1117

被折叠的 条评论
为什么被折叠?



