Java: Spring Boot获取操作系统信息 12345 // org.springframework.boot.info.OsInfo var osInfo=new OsInfo(); System.out.println(osInfo.getName()); System.out.println(osInfo.getVersion()); System.out.println(osInfo.getArch());