Json 통신 시 "org.springframework.web.servlet.view.json.MappingJacksonJsonView" 를 사용할 경우 해당 오류가 발생할 수 있다.
이경우
Model의 Getter 부분에 @JsonIgnore Annotation을 넣어주면 해결된다.
ex)
@JsonIgnore
public MultipartFile getMemberPhotoFile() {
return memberPhotoFile;
}
'Java > Spring' 카테고리의 다른 글
Spring WebUtils Session 관련 (0) | 2014.06.20 |
---|---|
get type parameter 값(ex.http://xxx.com?id=aaa 에서 id=aaa 값)을 url에서 숨기고 싶을경우.. (0) | 2014.04.29 |
아래 게시판을 Spring+iBatis 로 수정.. (0) | 2011.01.17 |
Spring을 이용한 간단한 게시판 (0) | 2010.05.29 |