title: JsonView does not work
body: <p>I use the annotation @JsonView, but it doesn't work, here is my code and the return data, would you please help me to look where I am wrong.</p>
  
  <p>My spring jar shows the edition of "spring-web-3.2.8.RELEASE.jar", and I just add this bean,I do not know whether it is useful or not, and I just use @JsonView directly in my code</p>
  
  <pre><code>&lt;bean id = "jacksonMessageConverter" class = "org.springframework.http.converter.json.MappingJackson2HttpMessageConverter"&gt;
          &lt;/bean&gt;
  </code></pre>
  
  <p>Here is the View class </p>
  
  <pre><code>public class View {
      public interface Summary{};
  }
  </code></pre>
  
  <p>This is the User entity class(with "set" "get" method omitted), it has several attribute which corresponding to the database, there is a "status" attribute needn't return in the json data.</p>
  
  <pre><code>public Class User{
      @JsonView(View.Summary.class)
      private Integer uid;
  
      @JsonView(View.Summary.class)
      private String first;
  
      @JsonView(View.Summary.class)
      private String last;
  
      @JsonView(View.Summary.class)
      private String email;
  
      @JsonView(View.Summary.class)
      private String password;
  
      private Integer status;
  
  }
  </code></pre>
  
  <p>I had the controller </p>
  
  <pre><code>@RequestMapping(value="/login", method=RequestMethod.POST)
  @JsonView(View.Summary.class)
  @ResponseBody
  public Message login(String email, String password){        
      User user = userMapper.findUser(email,password);        
  
      Message message = new Message();                
      message.setUser(user);
      return message;     
  }   
  }
  </code></pre>
  
  <p>and here is my Message class with the "set" "get" methods</p>
  
  <pre><code>public class Message {
      private int box_hits;
  
      private List&lt;Box&gt; boxes;
  
      @JsonView(View.Summary.class)
      private User user;
  }
  </code></pre>
  
  <p>when I use the postman to test the url,it shows json data, obviously, it should not return with the attribute without @JsonView, what' wrong with my code?</p>
  
  <pre><code> {
    "box_hits": 0,
    "boxes": null,
    "user": {
      "uid": 1,
      "first": "yuan",
      "last": "kang",
      "email": "123@qq.com",
      "password": "123",
      "status": 0
    }
  }
  </code></pre>