Closed theWangs closed 1 year ago
miss commit so, please tell me how to do it.... This is my first time use reactor java
Hello, @theWangs. Thank you for the question!
In the first screenshot, when you invoke the line connection.beginTransaction().then(Something)
, it is valid when connection.beginTransaction()
returns a Mono<?> type.
There are various ways to achieve this, but a simple method is to use MySqlConnection connection = (MySqlConnection) conMono.block()
instead of Connection connection = conMono.block()
If you have any further questions, please feel free to ask.
Thanks a lot! this has been confusing me for days
jdk 1.8 springboot 2.7.14 r2dbc-mysql 0.9.3 follow example: and error mes: Cannot resolve method 'then' in 'Publisher' now ,how can i begin a transcation?