Created
April 12, 2018 05:26
-
-
Save michael-simons/d4cbf2b0d4c5e6db764eba402c9a0447 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class TestProperties { | |
var someString: String = "default" | |
var someNumber: Int = 42 | |
override fun toString(): String = "TestProperties(someString='$someString', someNumber=$someNumber)" | |
} | |
bean { ref<Environment>().let { environment -> ApplicationRunner { | |
println(Binder.get(environment) | |
.bind("test", TestProperties::class.java) | |
.orElseGet { TestProperties() }) | |
} }} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment