Jackson1 [Spring] com.fasterxml.jackson.databind.JsonMappingException: No serializer found for class 오류 해결 오류 com.fasterxml.jackson.databind.JsonMappingException: No serializer found for class com.example.dto.ResponseCodeDto and no properties discovered to create BeanSerializer (to avoid exception, disable SerializationFeature.FAIL_ON_EMPTY_BEANS) (through reference chain: java.util.HashMap["responseCodeDto"]) 해결 // 생략... responseMap.put("body", new Gson().toJson(responseCodeDto)); // return return r.. 2023. 2. 28. 이전 1 다음