No backing TransactionOperations configured. #10415
-
I recently upgraded my micronaut version from 3 to 4, io.micronaut.context.exceptions.ConfigurationException: No backing TransactionOperations configured. Check your configuration and try again
Caused by: io.micronaut.context.exceptions.NoSuchBeanException: No bean of type [io.micronaut.transaction.TransactionOperations] exists. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 5 replies
-
Hi, I have the same issue in a test class that has repositories mocked but I couldn't find the cause yet. |
Beta Was this translation helpful? Give feedback.
-
I am exactly stuck at same error, However my |
Beta Was this translation helpful? Give feedback.
Hey, I finally isolated the issue. If your repositories' methods are annotated with either
@jakarta.transaction.Transactional
or@io.micronaut.transaction.annotation.Transactional
tests will fail. Move the annotation to the class level, do amvn clean
and then tests will pass.I opened a bug report here.