简体   繁体   English

如何在Spring 3.0.3中创建安全提交表单?

[英]How do I create a Secure submit form in Spring 3.0.3?

I am new to Spring (formerly a Struts guru) and I've decide to change all my code to Spring for the reason being that Spring is more Service-Oriented (and the possibility that I might also include a RESTful application form the same project is a possible option). 我是Spring的新手(以前是Struts专家),我决定将所有代码更改为Spring,原因是Spring更加面向服务(并且可能还会在同一项目中包含RESTful应用程序)是一个可能的选择)。

As for now, in Struts, there was an SSL plugin to create a secure HTTPS form. 到目前为止,在Struts中,有一个SSL插件可以创建安全的HTTPS表单。 How do I do that in Spring? 春天该怎么办? I've read Spring Security but to no avail. 我读过Spring Security,但无济于事。

Thanks in advance. 提前致谢。

Take a look at the SpringSecurity reference - Section 2.3.2. 看一下SpringSecurity参考-2.3.2 节。 Adding HTTP/HTTPS Channel Security . 添加HTTP / HTTPS通道安全性 This gives you a simple way to declare that a URL or set of URLs must be accessed via HTTPS. 这提供了一种简单的方法来声明必须通过HTTPS访问一个URL或一组URL。 (IIRC, this works by configuring a ChannelProcessingFilter which will automatically redirect requests to the appropriate protocol if necessary.) (IIRC,这通过配置ChannelProcessingFilter起作用,如有必要,它将自动将请求重定向到适当的协议。)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM