I have been implemented my "skeleton" as Spring @MVC 3.0 REST application. Then can anyone please specify me to, how can I perform authentication and authorization with Spring Security, for my stub (client) applications. Thanks.
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
Your best bet would be looking at the spring security tutorial app which is located in the spring security distribution jar.
From the documentation:
Download the latest Spring Security distribution and unzip the file. After unzipping Spring Security, you'll need to unzip the spring-security-sample-tutorial-3.0.x.war file that you'll find in there, because we need some files that are included within it. After unzipping the war file, you will see a folder called spring-security-samples-tutorial-3.0.x (where "x" is the minor version number).
You can download it here.
Also have a look at the pet clinic security tutorial.
A quick security setup for technology exploration purposes should take around 30 minutes.