title: Spring Boot + Swagger + Swagger UI and @RequestBody has data type String
body: <p>I've got a problem using Spring Boot 1.4 and Swagger and Swagger UI. When using @RequestBody parameter is displaying as data type string. This does not seems correct.</p>
  
  <pre><code>@ApiOperation(value = "simple message resource")
  @ApiImplicitParams({
          @ApiImplicitParam(name = "message", value = "Message to send", required = true, dataType = "com.larmic.springboot.swagger.rest.dto.MessageDto", paramType = "body")
  })
  @RequestMapping(value = "/api/message", method = RequestMethod.POST,
          consumes = {"application/json", "application/xml"})
  public void sendMessage(@RequestBody MessageDto message) {
      System.out.println("ping");
  }
  </code></pre>
  
  <p>and </p>
  
  <pre><code>@XmlRootElement(name = "MessageDto")
  @XmlAccessorType(XmlAccessType.FIELD)
  @ApiModel(value = "MessageDto", description = "TODO")
  public class MessageDto {
  
      @ApiModelProperty(value = "Message content text", required = true, example = "some demo message")
      private String content;
  
      public String getContent() {
          return content;
      }
  
      public void setContent(String content) {
          this.content = content;
      }
  }
  </code></pre>
  
  <p>I've found a lot of fixes using full name of MessageDto or setting correct value of @ApiModel but nothing seems to work.</p>
  
  <p>I've created a full example here <a href="https://github.com/larmic/SpringBootAndSwaggerUI" rel="noreferrer">https://github.com/larmic/SpringBootAndSwaggerUI</a></p>
  
  <p>Maybe someone can help. </p>