首页域名资讯 正文

tomcat 自动跳转到HTTPS – HTTPS SSL 教程

2024-12-13 4 0条评论

把下面内容插入到 项目web.xml 文件中

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

 

文章版权及转载声明

本文作者:亿网 网址:https://edns.com/ask/post/150011.html 发布于 2024-12-13
文章转载或复制请以超链接形式并注明出处。