title: GET mapping works but POST, PUT and DELETE have status 405 (in spring-boot Restful api)
body: <p>I use Intellij idea and I created a spring-boot project. My problem is with request methods, when I use GET method, it works but POST,PUT and DELETE methods throw that damn Whitelabel Error Page!!
  The error content is :</p>
  
  <blockquote>
    <p>"There was an unexpected error (type=Method Not Allowed, status=405).
    Request method 'GET' not supported"</p>
  </blockquote>
  
  <pre><code>@RestController
  @RequestMapping("/")
  public class CustomerInquiryController {
  
      @GetMapping("/get")
      public String getMessage(){
          return "msg is fetched!";
      }
  
      @PostMapping("/post")
      public String addMessage(){
          return "msg is added!";
      }
  
      @PutMapping("/put")
      public String editMessage(){
          return "msg is edited!";
      }
  
      @DeleteMapping("/del")
      public String deleteMessage(){
          return "msg is deleted!";
      }
  }
  </code></pre>