Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
を使用IntelliJして、プロパティを設定します
IntelliJ
できませんが、次のようにアクセスしますSystem.getProperty("Key")(取得しますnull)
System.getProperty("Key")
null
これはそれを行う方法ではありませんか?お知らせ下さい。
これを行うには複数の方法があるかもしれませんが、この方法は確実に機能します。
このダイアログを表示するには、上部 (メニュー バーのすぐ下) のドロップダウンをクリックして、 を選択しますEdit Configurations...。をクリックしOKてから、緑色の再生ボタンを押して構成を実行します。
Edit Configurations...
OK
「VMオプション」の値を設定できます(例:-DKey = "key")。