2021年5月26日 星期三

技巧的設定JAVA main 測試環境

在Eclipse 執行測試程式,有時需要判定是否為測試環境。

可在執行設定中加入一個系統參數。

 

image

在VM arguments 輸入-DIS_DEV_ENV=true

image

 

main Method 中可以用System.getProperty 來取得系統的設定。

image

2021年4月5日 星期一

上市公司季報下載

 所有上市公司的每季財報可在此處作一次下載, https://mops.twse.com.tw/mops/web/t203sb02




2020年12月17日 星期四

時間是最珍貴的資源

時間是最珍貴的資源,不能管理時間,便什麼也無法管理。
Time is the scarcest resource and unless it is managed nothing else can be managed.
—— 彼得.杜拉克 - 管理學之父

2020年12月10日 星期四

Java system properties and environment variables

  • System properties are set on the Java command line using the -Dpropertyname=value syntax. They can also be added at runtime using System.setProperty(String key, String value) or via the various System.getProperties().load() methods.
    To get a specific system property you can use System.getProperty(String key) or System.getProperty(String key, String def).
  • Environment variables are set in the OS, e.g. in Linux export HOME=/Users/myusername or on Windows SET WINDIR=C:\Windows etc, and, unlike properties, may not be set at runtime.
    To get a specific environment variable you can use System.getenv(String name).

2020年12月3日 星期四

Ads

Seo Services