问题描述
七月 28, 2021 9:35:23 下午 org.hibernate.engine.jdbc.spi.SqlExceptionHelper logExceptions
WARN: SQL Error: 1146, SQLState: 42S02
七月 28, 2021 9:35:23 下午 org.hibernate.engine.jdbc.spi.SqlExceptionHelper logExceptions
ERROR: Table ‘shuser.book’ doesn’t exist
Exception in thread “main” javax.persistence.PersistenceException: org.hibernate.exception.SQLGrammarException: could not execute statement

解
决
连接数据库的方言为写

加上方言
这篇博客讲述了在2021年7月28日遇到的Hibernate SQL异常,关于'book'表不存在的问题,并探讨了如何通过添加数据库方言来解决。重点介绍了如何在代码中正确配置连接数据库的方言和路径。

5416

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



