dimanche 30 octobre 2016

Change @PropertySource value in run time

How can I change the value of @PropertySource in run time when the junit test class runs. For example,

I want to replace the value of below,

@PropertySource(value = "file:${app.deploy.env}/sample/mine.properties", ignoreResourceNotFound = true)

with

value = "classpath:sample/mine.properties"

when junit test runs.





Aucun commentaire:

Enregistrer un commentaire