跳到主要内容
版本:latest

get_system_info

获取服务器上已安装和可安装的 JDK、Tomcat 版本信息。

  • 路由GET /mod/java/project/get_system_info/stype
  • 方法:GET

输出参数

参数名称类型描述
statusBooleantrue
data.jdk_infoArray<Object>JDK 列表,每项含 namepathis_current
data.tomcat_infoArray<Object>Tomcat 版本列表

示例

{
"status": true, "data": {
"jdk_info": [
{"name": "jdk1.8.0_371", "path": "/www/server/java/jdk1.8.0_371/bin/java", "is_current": true},
{"name": "jdk-11.0.19", "path": "", "is_current": false}
],
"tomcat_info": [{"name": "tomcat9", "status": true, "jdk_path": "..."}]
}
}