아래와 같이 Custom WebArgumentResolver를 등록했으나, 반영이 안되는 경우entR
mvc:annotation-driven 태그의 위치를 확인해보자.
반드시 Custom WebArgumentResolver보다 아래에 선언되어야 한다.
<bean class="org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter">
<property name="customArgumentResolvers">
<list>
<bean class="com.cherrykyun.tistory.HealthUserWebArgumentResolver" />
</list>
</property>
</bean>
mvc:annotation-driven 태그의 위치를 확인해보자.
반드시 Custom WebArgumentResolver보다 아래에 선언되어야 한다.
<bean class="org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter">
<property name="customArgumentResolvers">
<list>
<bean class="com.tistory.cherrykyun.HealthUserWebArgumentResolver" />
</list>
</property>
</bean>
// 위에 선언되어있으면 custom WebArgumentResolver가 동작 안함
<mvc:annotation-driven />
'Computer Language > Java' 카테고리의 다른 글
| [Spring 3.0.5] Custom WebArgumentResolver를 적용한 후 @ResponseBody를 적용한 Controller가 정상 동작하지 않음. (2) | 2011/12/11 |
|---|---|
| Spring 3.1.0.x로 버젼업 후 Unit Test가 동작하지 않을 때 (0) | 2011/12/11 |
| [Spring 3.0.5.RELEASE] Custom WebArgumentResolver 반영이 안될 때 (2) | 2011/12/10 |
| [Checkstyle 코드리뷰] 룰셋 설정 파일 로딩하기 (1) (0) | 2009/12/27 |
| [Checkstyle 코드리뷰] Apache Commons CLI 로 커맨드라인 옵션 파싱하기 (0) | 2009/12/13 |
| [Checkstyle 코드리뷰] 환경설정하기 (0) | 2009/12/10 |