在 web.xml 中将 cookie 设置为 false

问题描述

现在我在 meta-inf 下有 context.xml,

<Context  cookies="false"/>

和WEB-INF下的web.xml,

<web-app>
    <security-constraint>
        <web-resource-collection>
            <web-resource-name>restricted methods</web-resource-name>
            <url-pattern>/*</url-pattern>
            <http-method-omission>HEAD</http-method-omission>
        </web-resource-collection>
        <auth-constraint/>
    </security-constraint>
</web-app>

是否可以在一个 XML 文件中维护这两个文件

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)