重新定義https端口號,強制跳轉是出現問題, 解決方法,重新定義redirePort 為 新設定的https端口
參考鏈接:http://www.mamicode.com/info-detail-1157418.html
附加,項目中,在強制跳轉時,在web.xml中進行配置
<security-constraint>
<web-resource-collection>
<web-resource-name>SSL</web-resource-name>
<url-pattern>/WsUserServicePort</url-pattern><!--僅WsUserServicePort使用SSL -->
</web-resource-collection>
<user-data-constraint>
<description>SSL required</description>
<!-- CONFIDENTIAL: 要保證服務器和客戶端之間傳輸的數據不能夠被修改,且不能被第三方查看到
INTEGRAL: 要保證服務器和client之間傳輸的數據不能夠被修改
NONE: 指示容器必須能夠在任一的連接上提供數據。(即用HTTP或HTTPS,由客戶端來決定) -->
<transport-guarantee>CONFIDENTIAL</transport-guarantee>
</user-data-constraint>
</security-constraint>
記錄點點滴滴,雖然微不足道。