在Tomcat中强制web应用程序使用SSL
时间:2010-09-01 来源:蓝锋
在应用程序的配置文件web.xml中的之前加入:
<security-constraint>
<web-resource-collection>
<web-resource-name>Restricted URLs</web-resource-name>
<url-pattern>/</url-pattern>
</web-resource-collection>
<user-data-constraint>
<transport-guarantee>CONFIDENTIAL</transport-guarantee>
</user-data-constraint>
</security-constraint>
关键字:Tomcat, SSL, Web, 配置
相关阅读 更多 +
排行榜 更多 +