[Spring Framework Error] Could not find acceptable representation 해결
전자정부프레임워크 에서 개발 중 Ajax로 VO를 넘기거나 받을때
Could not find acceptable representation가 발생합니다.
egov-com-servlet.xml 에
org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter안에
property를 추가합니다.
<bean class="org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter">
<property name="webBindingInitializer">
<bean class="egovframework.com.cmm.web.EgovBindingInitializer"/>
</property>
<property name="messageConverters">
<list>
<bean
class="org.springframework.http.converter.StringHttpMessageConverter">
<property name="supportedMediaTypes">
<list>
<value>text/html;charset=UTF-8</value>
<value>application/json;charset=UTF-8</value>
</list>
</property>
</bean>
<bean class="org.springframework.http.converter.json.MappingJackson2HttpMessageConverter" />
</list>
</property>
</bean>
webBindingInitializer는 원래있었던거고 아래에 messageConverters만 넣으시면됩니다..
www.egovframe.go.kr/uss/olh/qna/QnaInqireCoUpdt.do?qaId=QA_00000000000019562&menu=5&submenu=3
하루를 날리지마세요..
'Backend > Spring Framework Error 해결' 카테고리의 다른 글
댓글
이 글 공유하기
다른 글
-
[Spring Framework Error] web.xml is missing and <failOnMissingWebXml> is set to true
[Spring Framework Error] web.xml is missing and <failOnMissingWebXml> is set to true
2021.01.12 -
[Spring Framework Error]전자정부프레임워크3.9.0 Jboss7.3연동시 에러
[Spring Framework Error]전자정부프레임워크3.9.0 Jboss7.3연동시 에러
2020.12.30 -
[Srping Framework Error 해결]Spring MVC 중 Class not found [config set: /web-context] XML 에러
[Srping Framework Error 해결]Spring MVC 중 Class not found [config set: /web-context] XML 에러
2020.11.17