Skip to content

Using environment variables in datasource.properties #255

@kevynb

Description

@kevynb

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions