개발/Framework || Lib

어노테이션에서 인터셉터사용하기

백아절현 2009. 1. 29. 11:51
 <bean id="annotationMapper" class="org.springframework.web.servlet.mvc.annotation.DefaultAnnotationHandlerMapping">
  <property name="order" value="2"></property>
  <property name="interceptors">
  <bean class="com.sgcns.LoginCheck"></bean>
  </property>
 </bean>

모든 어노테이션 컨트롤러에 모두 사용되는 단점이 있다.
하지만 인터넷에 뒤져보면 하고싶은것과 안하고싶은것을 미리 구현해놓은 좋은 소스 있으니 사용하기 바람
일단은 여기에 만족하고.. 다시 1하러 ..ㅠㅠ

출처 : http://cafe.naver.com/deve.cafe?iframe_url=/ArticleRead.nhn%3Farticleid=2674

참고 : http://www.scottmurphy.info/spring_framework_annotation_based_controller_interceptors