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

前端 未结 6 1449
有刺的猬
有刺的猬 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条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-11-29 02:52

    You can add command line arguments to your run configuration. Just edit the run configuration and add -Dmyprop=value (or whatever) to the VM Arguments Box.

提交回复
热议问题