title: Connection refused when using curl?
body: <p>I am on a mac and am building a java spring boot project by following this tutorial:
  <a href="https://spring.io/guides/tutorials/react-and-spring-data-rest/" rel="nofollow noreferrer">https://spring.io/guides/tutorials/react-and-spring-data-rest/</a></p>
  
  <p>However when I try to access the api through this command:</p>
  
  <p><code>curl localhost:8080/api</code></p>
  
  <p>I get the following message</p>
  
  <pre><code>Failed to connect to localhost port 8080: Connection refused
  </code></pre>
  
  <p>I'm not sure what the problem is!  Grateful for your help,
  Many thanks,</p>