title: Map Post Parameter With Dash to Model In Spring Controller
body: <p>I have the following property that I need mapped to a post parameter in Spring.  Is there an attribute I can use?  It accepts application/x-www-form-urlencoded for string-based payloads, multipart/form-data for binary payloads.  Other properties are mapping fine without underscores.</p>
  
  <pre><code>String deliveryAttemptId;
  </code></pre>
  
  <p>mapped to the post parameter</p>
  
  <pre><code>DELIVERY-ATTEMPT-ID
  </code></pre>
  
  <p><strong>Controller</strong></p>
  
  <pre><code>@Controller
  @RequestMapping("/notifications")
  public class NotificationController {
  
      @RequestMapping(method = RequestMethod.POST)
          @ResponseBody
          public void grade(EventNotificationRequest request, HttpServletResponse response) throws Exception {        
  
      }
  </code></pre>
  
  <p><strong>Model</strong></p>
  
  <pre><code>public class EventNotificationRequest {
  
      String deliveryAttemptId;
  </code></pre>