. Advertisement .
..3..
. Advertisement .
..4..
Hi everyone,
Today, when I am running my program, I encounter this error ”javax persistence transactionrequiredexception executing an update delete query”.
javax persistence transactionrequiredexception executing an update delete query
I don’t have any experience with the ”javax persistence transactionrequiredexception executing an update delete query”. In this case, how should I change?
The cause: This error happens because the transaction is not started.
Solution: You can fix the problem by adding the
@Transactional
annotation section to the methodIn the case of multiple data sources and multiple transactions, you need to specify a specific transaction manager on the note section