java判断linux还是windows

 

 

System.getProperty("os.name").toLowerCase().contains("linux");

 

System.getProperty("os.name").toLowerCase().contains("windows");

 

 

 

#################

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-12-04
  • 2021-05-26
  • 2021-11-26
  • 2022-12-23
  • 2021-09-14
猜你喜欢
  • 2021-07-25
  • 2021-10-24
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案