Securing A Spring Service
When a service is implemented in Spring, it can be secured with the @Secured annotation. It has a parameter where the list of roles can be defined. In order to enable this annotation, one must add the the following line in the Spring Security configuration XML file:<security:global-method-security secured-annotations="enabled"/>
A complete example is available here.
No comments:
Post a Comment