言诗把酒

关注

error performing isolated work

言诗把酒

关注

阅读 44

2022-10-09


问题描述:

org.springframework.dao.InvalidDataAccessResourceUsageException: error performing isolated work; SQL [n/a]; nested exception is org.hibernate.exception.SQLGrammarException: error performing isolated work

解决方案:

在实体类的主键上边加上这个注解就可以了:

@GeneratedValue(strategy = GenerationType.IDENTITY)

error performing isolated work_自增

 

原因:主键是自增的。 

 

 

 

相关推荐

花姐的职场人生

repo sync error: cannot initialize work tree

花姐的职场人生 52 0 0

骑在牛背上看书

Linux 使用开源 yum 报错 Error performing checksum 解决方法

骑在牛背上看书 232 0 0

DT_M

JenKins添加Git报错Error performing git command: git ls-remote -h

DT_M 64 0 0

你的益达233

Non-isolated boost power module

你的益达233 63 0 0

zhyuzh3d

isolated world in chrome extension -- JS | chrome extension

zhyuzh3d 66 0 0

大南瓜鸭

解决:Failed to connect to repository : Error performing command: git.exe ls-remote -h xxxxxxx HEAD

大南瓜鸭 26 0 0

蒸熟的土豆

qt work

蒸熟的土豆 60 0 0

科牛

Silverlight 2 Beta 2的Isolated Storage

科牛 38 0 0

素的盐

HDU 5326 Work

素的盐 38 0 0

妖妖妈

work life balance

妖妖妈 123 0 0

精彩评论(0)

0 0 举报