Spring properties file vs system property

Viewed 7830

This is kind of strange question, but are there any advantages of defining a variable as system property like,

 System.getProperty("files-dir", System.getProperty("user.home") + "/uploaded-files");

over defining it inside Spring application properties. What is more preferable ?

2 Answers
Related