Tomcat Java web应用程序中HTTPS和HTTP之间的切换

Tomcat Java web应用程序中HTTPS和HTTP之间的切换,tomcat,ssl,https,Tomcat,Ssl,Https,我已经在Tomcat 5.5中设置了SSL,并在我的web.xml中设置了以下内容: <security-constraint> <web-resource-collection> <web-resource-name>SSL URLs</web-resource-name> <url-pattern>/j_spring_security_check</url-pat

我已经在Tomcat 5.5中设置了SSL,并在我的web.xml中设置了以下内容:

<security-constraint>
        <web-resource-collection>
            <web-resource-name>SSL URLs</web-resource-name>
            <url-pattern>/j_spring_security_check</url-pattern>
            <http-method>GET</http-method>
        <http-method>POST</http-method>
        </web-resource-collection>
        <user-data-constraint>
            <transport-guarantee>CONFIDENTIAL</transport-guarantee>
        </user-data-constraint>
    </security-constraint>

SSL URL
/j_弹簧_安全检查
得到
邮递
保密的
当我提交具有“j_spring_security_check”操作url的登录表单时,这一点很好,但是当我导航到应用程序中的任何其他url时,应用程序使用url中带有https的SSL端口卡住


如何仅对某些URL使用HTTPS,而对其他URL使用纯HTTP?

这可能不是您想要的答案,但您是否考虑过使用HTTPS

发件人:

SSL/TLS在计算上不可用 不再贵了