如何使用 spring3 保护服务 REST?

问题描述:

我刚刚使用 MVC 注释(@Controller、@RequestMapping)在 spring 3 中创建了一个 Web 服务,现在我正在寻找一种保护它的方法.有人知道怎么做吗?

I just made a web service with spring 3 using MVC annotations (@Controller, @RequestMapping) and now I'm looking for a way to secure it. Does someone know how to do it?

谢谢,

我推荐 此视频 以了解 Spring-Security.Ben Alex 是创始人,非常有资格教授它.

I recommend this video to learn about Spring-Security. Ben Alex is the founder, so well qualified to teach it.

免责声明:虽然 Spring-Security 会提供一些身份验证和访问控制,但不能保证您的系统是安全的!

Disclaimer: while Spring-Security will provide some authentication and access control, it won't guarantee your system is secure!