web.xml - 在 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 文件中维护这两个?
解决方案
推荐阅读
- vba - 每个循环都有问题
- php - Laravel Find 和 first 不能正常协同工作
- .net - WPF 模板不适用于 .NET Core 3 Preview 8 3.0.100.13656 和 VS 2019 16.2.3
- amazon-web-services - 我想知道如何在 aws 上定期安排我的 shell
- apache-spark - 与 deviceid 对应的 Spark 结构化流式水印
- crashlytics - 如何一次记录两个 Crashlytics 异常
- java - 如何将 quickbooks 的 java sdk 集成到 android 应用程序中?
- python - 虚线图选择图例项作为回调的输入
- sql - 如何更新完整的列
- stm32 - STM32 I2C 从机接收仅在 HAL 库中使用 DMA 执行一次