@Value("#{myProperties.prop_part1_part2}")
works but
@Value("#{myProperties.prop.part1.part2}")
开发者_如何学Go
Doesn't.
How do I address a property with "." in the key ?
I haven't used spring 3 yet, so my answer is a shot in the dark. Try
@Value("#{myProperties['prop.part1.part2']"}
精彩评论