resthub / resthub-spring-stack

RESThub Spring stack
http://resthub.org/spring-stack.html
Other
121 stars 66 forks source link

Using environment variables in datasource.properties #255

Open kevynb opened 9 years ago

kevynb commented 9 years ago

Hello,

until yesterday I was using Resthub 2.0 and I've migrated to Resthub 2.2. I'm having troubles to get my project working, because up to now, I was using placeholders in my .properties files and they don't seem to work anymore. My main problem is with the datasource.properties file.

I cannot use the ${VALUE:default} anymore which I was using since the beginning. They still work in the persistence.properties though.

I figured that the issue might be coming from the util:properties in the boneCPContext instead of using a context:property-placeholder, but I couldn't find how to override this behaviour.

I'm deploying my project with elastic beanstalk and I'm using env variables to set all my db configurations. So i'm kind of stuck right now.

Thank you for your help

Ask me if you need more details