Skip to content

Commit

Permalink
refactor: ObjectMapper를 JsonView 필드로 두기
Browse files Browse the repository at this point in the history
  • Loading branch information
shb03323 committed Sep 26, 2023
1 parent 92a75c5 commit 2cc9a45
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,10 @@

public class JsonView implements View {

private final ObjectMapper objectMapper = new ObjectMapper();

@Override
public void render(final Map<String, ?> model, final HttpServletRequest request, HttpServletResponse response) throws Exception {
final ObjectMapper objectMapper = new ObjectMapper();
final Object modelValue = getModelValue(model);

response.setContentType(MediaType.APPLICATION_JSON_UTF8_VALUE);
Expand Down

0 comments on commit 2cc9a45

Please sign in to comment.