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

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

javascript - storing input from prompt in array and displaying the array -