title: spring Boot -"status":405,"error":"Method Not Allowed"
body: <p>I created a simple Spring Boot REST service using <a href="http://spring.io/guides/gs/rest-service" rel="noreferrer">the guide</a>, and am getting following error when I POST to <code>http://localhost:8080/greeting</code></p>
  
  <blockquote>
    <p>-"status":405,"error":"Method Not Allowed","exception":"org.springframework.web.HttpRequestMethodNotSupportedException","message":"Request method 'POST' not supported",</p>
  </blockquote>
  
  <p>I didn't find any info on how to solve the error. I am using version 1.3.2.RELEASE and starting Tomcat using <code>mvn spring-boot:run</code>.</p>
  
  <p>The guide says that all HTTP methods are allowed by default. So why does it respond that POST is not supported?</p>
  
  <p>How can I get Spring to invoke the controller method when I POST to this URL?</p>