java System.getenv, and System.getProperty
System.getenv("")
Get String from system enviroment variables
System.getProperty()
Get String from property file
private static ResourceBundle resourceBundle = ResourceBundle.getBundle(
"com.carel.supervisor.base.config.supervisor");
public static final String COMPANY_NAME = resourceBundle.getString("COMPANY_NAME");
- 上一篇 »java包的声明、导入、System类
- 下一篇 »java获取和设置系统变量问题,环境变量