Skip to content

Instantly share code, notes, and snippets.

@nyilmaz
Created December 24, 2013 08:29
Show Gist options
  • Save nyilmaz/8110361 to your computer and use it in GitHub Desktop.
Save nyilmaz/8110361 to your computer and use it in GitHub Desktop.
private PermitAll getPermitAll(HandlerMethod value) {
PermitAll annotation = value.getMethodAnnotation(PermitAll.class);
if(annotation == null){
annotation = value.getBean().getClass().getAnnotation(PermitAll.class);
}
return annotation;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment