Wednesday, 15 July 2015

Using @PreAuthorize on Spring controllers methods



Authenticate controller method using @PreAuthorize annotation : @PreAuthorize annotation is used to provide the method level security. We can secure our methods by using @PreAuthorize annotation. It is very easy to use and it is always preferred over the @Secured annotation.
@PreAuthorize is different in a way that it is more powerful than the @Secured. We can use Spring expression language(SpringEL) to validate the method before calling.
For full Blog of Using @PreAuthorize on Spring controllers methods visit FindNerd.

FindNerd- a social platform for tech nerds allows you to ask questions of all your technical problems. Use FindNerd for the following, increase knowledge, ask tech query, blog post, video post etc.

No comments:

Post a Comment