title: What to return if Spring MVC controller method doesn't return value?
body: <p>I am using jQuery's <code>$.getJSON()</code> to make asynchronous calls to my simple Spring MVC backend. Most of the Spring controller methods look like this:</p>
  <pre><code>@RequestMapping(value = &quot;/someURL&quot;, method = RequestMethod.POST)
  public @ResponseBody SomePOJO getSomeData(@ModelAttribute Widget widget,
      @RequestParam(&quot;type&quot;) String type) {
      return someDAO.getSomeData(widget, type);
  }   
  </code></pre>
  <p>I have things set up so that each controller returns the <code>@ResponseBody</code> as JSON, which is what the client-side expects.</p>
  <p>But what happens when a request isn't supposed to return any content to the client-side? Can I have:</p>
  <pre><code>@RequestMapping(value = &quot;/updateSomeData&quot; method = RequestMethod.POST)
  public @ResponseBody void updateDataThatDoesntRequireClientToBeNotified(...) {
      ...
  }
  </code></pre>
  <p>If not, what's the appropriate syntax to use here?</p>