org.springframework.dao.InvalidDataAccessResourceUsageException: could not execute query; nested ...

笑着哭i 提交于 2021-01-13 21:03:28

原因:

这个问题的解决方案很简单,主要是因为数据库中不存在相关的表或者列。

 

 

org.springframework.dao.InvalidDataAccessApiUsageException: Parameter with that position [1] did not exist; nested exception is java.lang.IllegalArgumentException: Parameter with that position [1] did not exist


org.springframework.dao.InvalidDataAccessResourceUsageException: could not execute query; SQL [select * from xxx]; nested exception is org.hibernate.exception.SQLGrammarException: could not execute query


org.springframework.dao.InvalidDataAccessResourceUsageException: could not extract ResultSet; SQL [n/a]; nested exception is org.hibernate.exception.SQLGrammarException: could not extract ResultSet

org.springframework.dao.InvalidDataAccessResourceUsageException: could not extract ResultSet; SQL [n/a]; nested exception is org.hibernate.exception.SQLGrammarException: could not extract ResultSet

 

 

Caused by: javax.persistence.TransactionRequiredException: Executing an update/delete query

.TransactionRequiredException: Executing an update/delete query

我想写update语句,但是一直报错于是加了三个两个东西

@Transactional
@Modifying


我那个账号没有权限,我把表drop掉重新建也没仔细看
哎,查了一个多小时

 

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!