我试图在我的网站中始终使用 https。我的 web.xml 文件中有以下内容:
<security-constraint>
<display-name>All access - GET and POST over SSL</display-name>
<web-resource-collection>
<web-resource-name>Common area - GET and POST</web-resource-name>
<url-pattern>/*</url-pattern>
<http-method-omission>GET</http-method-omission>
<http-method-omission>POST</http-method-omission>
</web-resource-collection>
<user-data-constraint>
<description/>
<transport-guarantee>CONFIDENTIAL</transport-guarantee>
</user-data-constraint>
</security-constraint>
但是它不起作用。知道我需要做什么吗?