Type safe usage of ConfigurationProperties in @Requires ? #4969
Answered
by
graemerocher
tobiasschaefer
asked this question in
Q&A
-
I'm using However, if I have a bean with a
e.g. @Singleton
@Requires(property="foo", value="false", defaultValue="true")
public class MyBean () {
} Is there any way to reference the property of the Something like the following for a boolean: @Requires(value="#{myConfiguration.isFoo}") Thanks! |
Beta Was this translation helpful? Give feedback.
Answered by
graemerocher
Feb 22, 2021
Replies: 1 comment
-
Not currently no. One day we may implement an expression language, but not yet |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
tobiasschaefer
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Not currently no. One day we may implement an expression language, but not yet