【问题标题】:What is web-resource-name in web.xml?web.xml 中的 web-resource-name 是什么?
【发布时间】:2015-04-19 03:39:48
【问题描述】:

以下是我在 web.xml 文件中使用的标签。

web-resource-name 是什么?

<security-constraint>
    <web-resource-collection>
        <web-resource-name>profile</web-resource-name>
        <url-pattern>/profile/*</url-pattern>
    </web-resource-collection>
    <user-data-constraint>
        <transport-guarantee>CONFIDENTIAL</transport-guarantee>
    </user-data-constraint>
</security-constraint>

【问题讨论】:

    标签: web.xml


    【解决方案1】:

    我发现a page in the Java EE 6 docs 似乎回答了您的问题,并在旁边解释了一些其他标签:

    一个网络资源集合由以下子元素组成:

    • web-resource-name 是您用于此资源的名称。它的使用是可选的。

    【讨论】:

      猜你喜欢
      • 2012-07-17
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-03-10
      • 2015-09-22
      • 1970-01-01
      相关资源
      最近更新 更多