2
0

Service.java 352 B

12345678910111213141516171819202122
  1. package sample.aspectj;
  2. import org.springframework.security.access.annotation.Secured;
  3. /**
  4. * Service which is secured on method level
  5. *
  6. * @author Mike Wiesner
  7. * @since 1.0
  8. */
  9. public class Service {
  10. @Secured("ROLE_USER")
  11. public void secureMethod() {
  12. // nothing
  13. }
  14. public void publicMethod() {
  15. // nothing
  16. }
  17. }