title: The method is not allowed in Swagger UI after adding the controller
body: <p>I have Swagger added to the project and it works <a href="https://zapodaj.net/217c8a0dcf348.png.html" rel="nofollow noreferrer">https://zapodaj.net/217c8a0dcf348.png.html</a>. After adding the controller</p>
  
  <pre><code>@RestController(value = "/register")
  public class RegisterRestController {
  ...
  
  @PostMapping(consumes = MediaType.APPLICATION_JSON_VALUE)
  @ResponseStatus(HttpStatus.CREATED)
  public
  ResponseEntity&lt;Void&gt; register(
          @RequestBody final RegisterDto registerDTO
  ) {
      this.userService.createUser(registerDTO);
  
      final HttpHeaders httpHeaders = new HttpHeaders();
      return new ResponseEntity&lt;&gt;(httpHeaders, HttpStatus.CREATED);
  }
  }
  </code></pre>
  
  <p>Swagger UI stops working <a href="https://zapodaj.net/c60c3029b0905.png.html" rel="nofollow noreferrer">https://zapodaj.net/c60c3029b0905.png.html</a>. Kicks</p>
  
  <pre><code>"error": "Method Not Allowed",
  "message": "Request method 'GET' not supported",
  "status": "405"
  </code></pre>
  
  <p>I found a similar thread on <a href="https://stackoverflow.com/questions/46151540/added-springfox-swagger-ui-and-its-not-working-what-am-i-missing">stackoverflow</a>, but I do not know how he can help me. What's up with this Swagger?</p>