zoukankan      html  css  js  c++  java
  • java web 将http 强转为https

    在web.xml中添加如下:

    <!-- add by jim -->
    <security-constraint>
        <web-resource-collection>
            <web-resource-name>SSL</web-resource-name>
    <!-- 任意url --> <url-pattern>/*</url-pattern> </web-resource-collection> <user-data-constraint> <transport-guarantee>CONFIDENTIAL</transport-guarantee> </user-data-constraint> </security-constraint>

    服务器为resin,需要在confi.xml文件中添加

       <http port='443'>
           <jsse-ssl>
         <key-store-file>dyxnettest.jks</key-store-file>
         <password>test123</password></jsse-ssl>
      </http>
  • 相关阅读:
    List集合
    ArrayList_toArray
    Collection集合基础知识
    Array类的使用
    16.10
    16.9
    16.8
    16.7
    16.6
    16.5
  • 原文地址:https://www.cnblogs.com/jimw/p/4867345.html
Copyright © 2011-2022 走看看