java - Property-placeholder using envriomental variables as CATALINA_HOME -
i use envriomental variable in location of property-placeholder don't it:
i tried in way:
<context:property-placeholder location="${catalina_home}/conf/database.properties" order="0"/>
but error
org.springframework.beans.factory.beaninitializationexception: not load properties; nested exception java.io.filenotfoundexception: not open servletcontext resource [/${catalina_home}/conf/database.properties]
also, don't find documentation use envriomental variables in context configuration or property-placeholder.
kind regards.
i think should this:
<context:property-placeholder location="#{ systemproperties['catalina_home'] }/conf/database.properties"/>
if didn't understand wrong.
Comments
Post a Comment