由于系统被格了,所以,现在的java项目配置不对,代码里面的配置类调用了一个System.getProperty("env")发现找不到该变量的值,以前一直能找到的。

其实就是以前给启动JVM的时候,用-Dkey="value" 来传递给JVM参数,就可以System.getProperty(key)了。

 

 

references:
http://stackoverflow.com/questions/9736862/how-to-add-new-system-properties-in-java

http://zengrong.net/post/1700.htm

http://blog.csdn.net/b_h_l/article/details/7772047

相关文章:

  • 2021-09-30
  • 2021-12-08
  • 2022-12-23
  • 2021-12-26
  • 2022-12-23
  • 2022-12-23
  • 2021-06-11
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-11-18
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案