【问题标题】:Scala Lift few https questionsScala Lift 几个 https 问题
【发布时间】:2011-08-20 20:07:26
【问题描述】:

我对 Scala Lift 中的 https 有几个问题:

如何设置我的 Web 应用程序只使用 https 协议?

我必须为使用 https 的现有应用程序重写一些代码吗?

请求响应周期是变化还是没有任何不同?

在哪里可以找到使用 https 的优秀 scala lift 开源项目,或者只是为了查看框架的高级使用?

谢谢。

【问题讨论】:

    标签: scala https lift


    【解决方案1】:

    HTTPS 需要在您的 servlet 容器中启用,例如 Jetty 或 Tomcat。它与您的 Web 应用程序没有太大关系。然后,您需要告诉 servlet 容器对部署描述符中的部分或所有页面使用 HTTPS。这就是您的 web.xml 文件的样子:

    <web-app>
        . . .
        <security-constraint>
            . . .
            <user-data-constraint>
                <transport-guarantee>CONFIDENTIAL</transport-guarantee>
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2012-11-19
      • 1970-01-01
      • 1970-01-01
      • 2011-05-22
      • 2011-11-05
      • 2011-09-27
      • 1970-01-01
      相关资源
      最近更新 更多