I'd like to be able to load properties from a directory based on the webapp name of the application.
I've read that in 3.1 the Environment abstraction is integrated throughout the container. DefaultWebEnvironment is populated with additional default property sources including servlet config and servlet context parameters by the container. So it seems it should be possible to get webapp name as placeholder, but cant figure out how?Code:<context:property-placeholder location="file:/etc/apps/${webappname}/*.properties"/>


Reply With Quote