Closed vmonastyrov closed 1 year ago
Spring Boot 2.7 supports only R2DBC 0.9. Please either downgrade your driver or upgrade to Spring Boot 3.0.
Thank you a lot for your answer. Unfortunately I cannot upgrade to Spring Boot 3.0 therefore I downgraded h2 driver and the save method works now.
Language: Kotlin Spring R2dbc Version: spring-boot-starter-data-r2dbc:2.7.8 Driver Version: r2dbc-h2:1.0.0.RELEASE
My code:
It throws
Exception: java.lang.ClassCastException: class java.lang.Long cannot be cast to class java.lang.Integer (java.lang.Long and java.lang.Integer are in module java.base of loader 'bootstrap') java.lang.ClassCastException: class java.lang.Long cannot be cast to class java.lang.Integer (java.lang.Long and java.lang.Integer are in module java.base of loader 'bootstrap') at java.base/java.util.stream.Collectors.lambda$summingInt$19(Collectors.java:673)
Despite the exception row in DB is updated.