You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
database {
name = "servicedb"
hostname = "db"
port = 5432
}
flyway {
url= "jdbc:postgresql://${database.hostname}:${database.port:-5432}/${database.name}"
}
it fails with
Caused by: com.uchuhimo.konf.source.WrongTypeException: source 5432 in [type: HOCON, url: file:/xxx/server/build/resources/main/application.conf, resource: application.conf] has type Integer rather than String
at com.uchuhimo.konf.source.SourceKt.asValueOf(Source.kt:448) ~[konf-core-0.22.1.jar:na]
at com.uchuhimo.konf.source.TreeLookup.lookup(Source.kt:407) ~[konf-core-0.22.1.jar:na]
at org.apache.commons.text.lookup.InterpolatorStringLookup.lookup(InterpolatorStringLookup.java:151) ~[commons-text-1.8.jar:1.8]
is it possible to do this?
The text was updated successfully, but these errors were encountered:
This issue has been automatically marked as stale because it has not had recent activity. It will be closed after 30 days if no further activity occurs, but feel free to re-open a closed issue if needed.
@peterfigure I have released a new version v0.23.0 that supports to interpolate Byte/Short/Int/Long/BigInteger/Char. You can try it now. Any further feedback is welcome.
given
it fails with
is it possible to do this?
The text was updated successfully, but these errors were encountered: