In yours spring-context.xmlyou only need the placeholder tag:
<context:property-placeholder />
After that, you insert the environment tag into the main Tomcats file context.xml, it reads it:
<Environment name="hibernate.dialect"
value="org.hibernate.dialect.Oracle10gDialect"
type="java.lang.String"
override="false"/>
Now you can use the code ${hibernate.dialect}in the sprinng configuration file.
source
share