WEB应用添加SSL支持(by quqi99)
作者:张华 发表于:2009-12-15
版权声明:可以任意转载,转载时请务必以超链接形式标明文章原始出处和作者信息及本版权声明
在web.xml文件中添加:
<security-constraint>
<display-name>Constranint1</display-name>
<web-resource-collection>
<url-pattern>/*</url-pattern>
<http-method>GET</http-method>
<http-method>POST</http-method>
<http-method>HEAD</http-method>
<http-method>PUT</http-method>
<http-method>OPTIONS</http-method>
<http-method>TRACE</http-method>
<http-method>DELETE</http-method>
</web-resource-collection>
<user-data-collection>
<transport-guarantee>CONFIDENTIAL</ transport-guarantee>
</user-data-collection>
</security-constraint>