티스토리 뷰
[Spring] cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'mvc:message- converters'.
IT공부블로그 2019. 8. 25. 17:27<mvc:annotation-driven>
</mvc:annotation-driven>
<mvc:message-converters>
<!-- json 메세지 컨버터 -->
<bean
class="org.springframework.http.converter.json.MappingJackson2HttpMessageConverter">
<property name="supportedMediaTypes">
<list>
<value>application/json; charset=UTF-8</value>
</list>
</property>
</bean>
</mvc:message-converters>
메세지 컨버터를 annotation-driven 안에 넣지 않아서 발생한 에러
<mvc:annotation-driven>
<mvc:message-converters>
<!-- json 메세지 컨버터 -->
<bean
class="org.springframework.http.converter.json.MappingJackson2HttpMessageConverter">
<property name="supportedMediaTypes">
<list>
<value>application/json; charset=UTF-8</value>
</list>
</property>
</bean>
</mvc:message-converters>
</mvc:annotation-driven>
넣어주니 해결
'Error > Spring' 카테고리의 다른 글
[Spring] No default constructor found; nested exception is java.lang.NoSuchMethodException (0) | 2019.09.05 |
---|---|
[Spring & java ] Unsupported major.minor version (0) | 2019.08.25 |
[Spring] Neither BindingResult nor plain target object for bean name '...' available as request attribute (0) | 2019.05.29 |
[Spring] pom.xml Missing artifact 에러 발생시 (0) | 2019.05.13 |
mybatis 동적쿼리 문자열 비교 (0) | 2019.04.29 |