如何让Spring使用https?

sta*_*low 3 spring-security

在最基本的意义上,我需要什么库,xml条目,标签来设置安全的http页面(使用Spring)?

dig*_*oel 6

您需要将服务器配置为支持HTTPS,这意味着获取或生成证书并将其安装到证书存储中.以下是如何使用Tomcat配置SSL的快速入门http://tomcat.apache.org/tomcat-6.0-doc/ssl-howto.html

让服务器在端口上监听https流量后,只需对现有的spring security xml配置进行一些修改即可配置应用程序,如http://static.springsource.org/spring-security/site/所述.文档/ 3.1.X /参考/ springsecurity-single.html#NS-要求沟道