jeudi 1 janvier 2015

Using -Dspring.config.name and -Dspring.config.location in gradle test command line

I am able to use -Dspring.config.name and -Dspring.config.location in my spring boot application successfully. and now want to use same -Dspring.config.location to pass to gradle test task. it seems not working for me. although I can pass other system property and use in my test classes.


I want to use this to run my tests in different environment. I know that spring profile can be used.


any help would be appreciated


Aucun commentaire:

Enregistrer un commentaire