Join Slack
Powered by
What is the functional bean equivalent of construc...
# spring
d
Dennis Schröder
07/02/2020, 11:12 AM
What is the functional bean equivalent of constructor injection of a value
Copy code
@Value("\${some.value:default}") someValue: String
k
Kepha
07/08/2020, 5:19 AM
Constructor(@Value(“${some.value:default}“) someValue: String, …) : This will works fine as I think.
d
Dennis Schröder
07/08/2020, 7:41 AM
Hey, thx for your reply, but I don´t have a constructor in the functional beans DSL
k
Kepha
07/09/2020, 4:32 AM
class AnyClass(@Value(“${some.value:default}“) someValue: String) {}
8
Views
Open in Slack
Previous
Next