There are several passes in the spring context file, so the question is which skip are the available properties. Unfortunately, <import> tags are processed at an earlier pass than bean declarations (for example, one for your PropertyPlaceholderConfigurer ), so it will not be available in the form that you are trying to use.
What you're (probably) trying to do is a common thing in Spring, with many different solutions. They often include modifying your assembly to make an injection. Overflow / overflow stacking for spring environment configuration should appear. I read spring 3.1 will provide the ability to allow configuration for each environment (so use the properties file "this" if I am building the "test", this if I am building the "dev", etc ..), but I donβt know a lot about it at this moment.
Melv Mar 09 '11 at 23:33 2011-03-09 23:33
source share