Skip to content

Instantly share code, notes, and snippets.

View nyilmaz's full-sized avatar

Nurettin Yılmaz nyilmaz

View GitHub Profile
private PermitAll getPermitAll(HandlerMethod value) {
PermitAll annotation = value.getMethodAnnotation(PermitAll.class);
if(annotation == null){
annotation = value.getBean().getClass().getAnnotation(PermitAll.class);
}
return annotation;
}
@nyilmaz
nyilmaz / gist:7786787
Created December 4, 2013 12:35
arkadaslik exception1
WARN [2013-12-04 14:10:06,343] org.eclipse.jetty.servlet.ServletHandler: /aktivite/mesajlar-ajax/gonder
! java.lang.IllegalArgumentException: null
! at org.eclipse.jetty.server.Response.sendRedirect(Response.java:470) ~[match-composite-act-sho-web-1.0-SNAPSHOT-V2013-11-21_10-40-58.jar:na]
! at org.springframework.web.servlet.view.RedirectView.sendRedirect(RedirectView.java:546) ~[match-composite-act-sho-web-1.0-SNAPSHOT-V2013-11-21_10-40-58.jar:na]
! at org.springframework.web.servlet.view.RedirectView.renderMergedOutputModel(RedirectView.java:277) ~[match-composite-act-sho-web-1.0-SNAPSHOT-V2013-11-21_10-40-58.jar:na]
! at org.springframework.web.servlet.view.AbstractView.render(AbstractView.java:263) ~[match-composite-act-sho-web-1.0-SNAPSHOT-V2013-11-21_10-40-58.jar:na]
! at org.springframework.web.servlet.DispatcherServlet.render(DispatcherServlet.java:1208) ~[match-composite-act-sho-web-1.0-SNAPSHOT-V2013-11-21_10-40-58.jar:na]
! at org.springframework.web.servlet.DispatcherServlet.processDispatchResult
@nyilmaz
nyilmaz / InMemoryAdvice.java
Created June 19, 2013 13:40
InMemoryAspect
package pipe.plug.inmemory;
import com.google.common.base.CaseFormat;
import org.aspectj.lang.ProceedingJoinPoint;
import org.aspectj.lang.annotation.Around;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.reflect.MethodSignature;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.NoSuchBeanDefinitionException;