From 8ada904c95a9002531a1b7001b9483656425f67a Mon Sep 17 00:00:00 2001 From: aiaiaiai1 Date: Sat, 30 Sep 2023 01:08:12 +0900 Subject: [PATCH] =?UTF-8?q?refactor:=20ObjectMapper=20static=ED=99=94?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../org/springframework/web/servlet/view/JsonView.java | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/mvc/src/main/java/webmvc/org/springframework/web/servlet/view/JsonView.java b/mvc/src/main/java/webmvc/org/springframework/web/servlet/view/JsonView.java index 2b9b562cc0..18c24bfbf6 100644 --- a/mvc/src/main/java/webmvc/org/springframework/web/servlet/view/JsonView.java +++ b/mvc/src/main/java/webmvc/org/springframework/web/servlet/view/JsonView.java @@ -10,11 +10,7 @@ public class JsonView implements View { - private final ObjectMapper objectMapper; - - public JsonView() { - objectMapper = new ObjectMapper(); - } + private final static ObjectMapper objectMapper = new ObjectMapper(); @Override public void render(