Skip to main content

All Questions

Filter by
Sorted by
Tagged with
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 ...
mjj1409's user avatar
  • 3,174
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 ...
redboy's user avatar
  • 607