How to pass the -D System properties while testing on Eclipse?

前端 未结 6 1453
有刺的猬
有刺的猬 2020-11-29 01:52

I am developing on Eclipse on Windows and Code gets deployed on Unix. I am fetching the system property values using System.getProperty(\"key\") ... How do I pass this in Ec

6条回答
  •  Happy的楠姐
    2020-11-29 02:55

    Run -> Run configurations, select project, second tab: “Arguments”. Top box is for your program, bottom box is for VM arguments, e.g. -Dkey=value.

提交回复
热议问题