Hey everyone! Does anyone have a reference for Kot...
# server
b
Hey everyone! Does anyone have a reference for Kotlin, SpringBoot & Gradlew setup for Google SpannerDB. I'm facing repeated beans missing issues. Since, this is relatively new to me and urgently help needed. Appreciate your help in advance.
a
I have not used SpannerDB but doesn't it just use Postgres on the wire? So you just need a kotlin / springboot / postgres example right?
👍 1
b
I guess, the spanner dialect is slightly different from the normal MySQL/PostgreSQl. However today I was able to create a spanner template that provides basic crud.
👍 1
c
b
I did try with springboot version 3.x.x but seems it wasn't working. With Springboot 2.x.x spanner template is working fine so far, will try again with data well and let you know. Error: "Consider creating beans .. " Thanks for the response.
c
Make sure about all the properties. There may be some you need to switch to
.enabled=false
https://googlecloudplatform.github.io/spring-cloud-gcp/3.4.0/reference/html/appendix.html#common-application-properties
b
Hey @corneil, Thanks for your response. This part is resolved as it was a incompitable springboot versions. But now somehow liquibase migration is not working - • implementation "com.google.cloudspannerecosystemliquibase spanner1.0.3" • spring.liquibase.change-log=db.liquibase/changelog spring.liquibase.enabled=true
Below is my folder structure.
c
Doesn't the cloudspannerecosystem starter have it's own properties?
b
It does have specially for the packaging structure but that too it's not working with SpringBoot 2.x.x version, I guess.
c
Check its documentation and dependencies to see which version of boot/spring framework it dependens on.