Skip to content

Commit

Permalink
refactor: jsonView에서 converToJson활용하도록 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
xxeol2 committed Sep 27, 2023
1 parent 6ab7060 commit ae43ae4
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ public class JsonView implements View {
@Override
public void render(final Map<String, ?> model, final HttpServletRequest request,
HttpServletResponse response) throws Exception {
final String body = objectMapper.writeValueAsString(model);
response.getWriter().write(body);
String json = convertToJson(model);
response.getWriter().write(json);
response.setContentType(APPLICATION_JSON_UTF8_VALUE);
}

Expand Down

0 comments on commit ae43ae4

Please sign in to comment.