How to specify the spring.config.location property in the Run/Debug Edit Configuration?

已回答

Hi, I've got a bunch of Spring Boot application property files in a directory external to the application. Spring Boot allows to pass the spring.config.location property where one can specify either folders or files. 

When using this property from the command line, e.g. java -jar <app-name>.jar -Dspring.config.location=<my folder> the application boots fine. 

However when trying to set this in the Run/Debug Edit Configuration screen it doesn't work. 

I've tried VM arguments, Program arguments and even ENVIRONMENT VARIABLES. 

Can somebody help please?

Regards,

2

请先登录再写评论。