sam
01/30/2021, 10:24 PMPeter
12/06/2021, 6:22 PMPeter
01/24/2022, 10:45 PMsam
03/16/2022, 11:43 AMdave08
03/28/2022, 1:27 PMdave08
05/24/2022, 1:06 PMDan T
09/07/2022, 1:55 PMMap<String, Any>
?
The error trying to use with the following sample values with a hocon source results in Unable to locate a decoder for class kotlin.Any
props {
intVal = 1
stringVal = "a"
}
I'm using it to populate a java.util.Properties
object. I don't see a Decoder available out of the box, so before I explore a custom Decoder thought I'd check in case I'm missing something simple. Thanks!Christopher Porto
10/13/2022, 5:16 AMdata class ExampleConfig(val test: Boolean)
EXAMPLE_TEST=true
sam
10/13/2022, 5:21 AMChristopher Porto
10/13/2022, 5:22 AMTEST=true
but want it so when i load the config i can pass prefix like "EXAMPLE" and it would expect "EXAMPLE_TEST=true"
sam
10/13/2022, 5:23 AMChristopher Porto
10/13/2022, 5:24 AMsam
10/13/2022, 5:24 AMsam
10/13/2022, 5:24 AMChristopher Porto
10/13/2022, 5:24 AMsam
10/13/2022, 5:24 AMChristopher Porto
10/13/2022, 5:24 AMConfigLoaderBuilder.default()
.addPropertySource(EnvironmentVariablesPropertySource(useUnderscoresAsSeparator = true, allowUppercaseNames = true))
.build()
.loadConfigOrThrow<SomeConfig>()
sam
10/13/2022, 5:26 AMChristopher Porto
10/13/2022, 5:26 AMsam
10/13/2022, 5:28 AMChristopher Porto
10/13/2022, 5:29 AMsam
10/13/2022, 5:30 AMChristopher Porto
10/13/2022, 5:31 AMsam
10/13/2022, 5:32 AMsam
10/13/2022, 5:35 AMsam
10/13/2022, 5:35 AMsam
10/13/2022, 5:36 AMChristopher Porto
10/13/2022, 5:44 AMsam
10/13/2022, 5:46 AMdave08
02/08/2023, 12:44 PMdata class AppConfigs(val fooSet: Set<Foo> = emptySet())
where fooSet
might be empty?dave08
02/08/2023, 12:44 PMdata class AppConfigs(val fooSet: Set<Foo> = emptySet())
where fooSet
might be empty?