使用hibernate和单元测试类,不能在MySQL数据库中自动生成对应数据表的问题【已解决】
在JUnit单元测试中,通过hibernate在MySQL数据库中生成 对应类的数据表时,
提示异常信息:
org.hibernate.exception.SQLGrammarException: could not execute statement
...
Caused by: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorE
原创
2018-02-01 11:13:39 ·
292 阅读 ·
0 评论