Skill/JPA

[JPA] MessageConverterConfiguration 적용시 에러

진열사랑 2020. 6. 26. 10:39

원인은 MessageConverterConfiguration를 적용(https://exhibitlove.tistory.com/3) 후 부터 다음 에러가 발생 중이다....
이렇게 되면 XSS 적용을 javascript단에서 해야하나?

Resolved [org.springframework.http.converter.HttpMessageNotWritableException: 
Could not write JSON: failed to lazily initialize a collection of role: 
com.mindone.okch.rnvtDrdg.domain.CnstLdg.cnstFtrs, 
could not initialize proxy - no Session; 
nested exception is com.fasterxml.jackson.databind.JsonMappingException: 
failed to lazily initialize a collection of role: 
com.mindone.okch.rnvtDrdg.domain.CnstLdg.cnstFtrs, 
could not initialize proxy - no Session 
(through reference chain: com.mindone.okch.common.dto.ResponseMessage["data"]
	->java.util.HashMap["contents"]
	->java.util.Collections$UnmodifiableRandomAccessList[0]
	->com.mindone.okch.rnvtDrdg.domain.CnstLdg["cnstFtrs"])]