All Questions
Tagged with spring-properties spring-annotations
2 questions
62
votes
4
answers
42k
views
Spring @Value escape colon(:) in default value
I have the following property annotated with @Value. I have a default value defined using the default separator of ':"
@Value("${prop.url:http://myurl.com}")
Is there a way to escape the ':' in ...
2
votes
1
answer
8k
views
@Value is always null
I have a situation where my attempt to use a @Value annotation results in the value being a null.
This is part of a large project and I'm not sure which parts of it are needed. I am using Java ...