saveTest 报错:SQLGrammarException: error performing isolated work
来源:4-1 买家类目-dao(上)
harry19902002
2018-04-28
findOneTest 没有问题,saveTest提示如下信息
org.springframework.dao.InvalidDataAccessResourceUsageException: error performing isolated work; SQL [n/a]; nested exception is org.hibernate.exception.SQLGrammarException: error performing isolated work
写回答
2回答
-
可爱的小勺子
2018-09-03
在ProductCategory中
把@GeneratedValue 变成
@GeneratedValue(strategy = GenerationType.IDENTITY)
就解决了00 -
harry19902002
提问者
2018-04-28
2018-04-28 18:01:51,143 - SQL Error: 1146, SQLState: 42S02
2018-04-28 18:01:51,144 - Table 'sell.hibernate_sequence' doesn't exist
022019-01-08
相似问题