Я настроил
в dispatcher-servlet.xml
org.springframework.web.servlet.mvc.annotation.RequestMappingHandlerAdapter дляMappingJackson2HttpMessageConverter
, но ошибка
Сервлет [диспетчер] в веб-приложении [/ mvcexam3] исключение load ()
java.lang.ClassNotFoundException: org.springframework.web.servlet.mvc.annotation.RequestMappingHandlerAdapter
найдено.
, но RequestMappingHandlerAdapter работает нормально. (находит контроллер для сопоставления запросов)
в чем проблема?
dispatcher-servlet.xml
<?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:context="http://www.springframework.org/schema/context" xmlns:mvc="http://www.springframework.org/schema/mvc" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation=" http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.0.xsd http://www.springframework.org/schema/mvc http://www.springframework.org/schema/mvc/spring-mvc-3.0.xsd"> <context:component-scan base-package="kr.or.connect.mvcexam" /> <bean id="viewResolver" class="org.springframework.web.servlet.view.InternalResourceViewResolver"> <property name="prefix" value="/WEB-INF/views/" /> <property name="suffix" value=".jsp" /> </bean> <bean id="multipartResolver" class="org.springframework.web.multipart.commons.CommonsMultipartResolver"> </bean> <bean class="org.springframework.web.servlet.mvc.annotation.RequestMappingHandlerAdapter"> <property name="messageConverters"> <list> <bean class="org.springframework.http.converter.json.MappingJackson2HttpMessageConverter" /> </list> </property> </bean> <!-- 파일을 업로드 할 때 그 파일이 저장될 실제 위치. --> <!-- applicationContext와 동일한경로에 있는 mvc dispatcher를 검색해 옴. --> </beans>