有 Java 编程相关的问题?

你可以在下面搜索框中键入要查询的问题!

Tomcat的java系统属性

在Wildfly中,有一组系统属性集,您可以调用该系统。获取Wildfly根目录、配置目录、部署目录、数据目录等的内容。See here在“路径”标题下

有没有类似的页面显示它们对Tomcat的作用?我一直在四处寻找,但似乎找不到


共 (1) 个答案

  1. # 1 楼答案

    您可以在tomcat环境中添加自己的JSP,其中包含以下代码:

    系统属性:

    <table>
        <%
            Enumeration e = System.getProperties().keys();
            while (e.hasMoreElements()) {
                String name = (String) e.nextElement();
        %><tr>
            <td><%=name%><td><%=System.getProperty(name)%> <%
         }
     %>
    
    </table>