RequestMappingHandlerAdapter
초기화 문제를 디버깅하려고하고 있으며 웹 검색을 통해 mvc:annotation-driven
xml 항목에서 초기화되었다는 결론을 얻었습니다. 누구나 나를 간단하게 설명 할 수 있을까요,이 초기화 작업은 어떻게 동작합니까? 파서가 구문 분석 할 때 어떤 일이 발생합니까? mvc:annotation-driven
? 또는 코드에서 코드를 실행하면 추적 할 것입니다. 이에mvc : annotation-driven의 초기화 시간 동작 이해
좀 더 컨텍스트 :
나는 자동으로 묶어을 통해 문맥에서 RequestMappingHandlerAdapter을 얻으려고 노력하지만 수 있었다.
No matching bean of type [org.springframework.web.servlet.mvc.method.annotation.RequestMappingH
andlerAdapter]
expected at least 1 bean which qualifies as autowire candidate for this dependency. Dependency annotations: {}
이 스레드를 발견하지만 솔루션이 작동하지 않습니다하지 않습니다 : 내가 사용하고 Spring, Jackson and Customization (e.g. CustomDeserializer)
: 그것은 내게 준 봄 3.1.3
이 내 서블릿 XML 파일의 모습입니다 ...
<context:annotation-config />
<context:component-scan base-package="com.xyz" />
<mvc:annotation-driven />
감사합니다, Parth
mvc : annotation-driven config의 순서가 잘못되었습니다. 나는 그것을 뒤집었고 효과가 있었다! – Parth