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(