title: Failed to deploy Spring boot application on Heroku
body: <p>I am trying to deploy a spring boot application on Heroku and I am getting this error:</p>
  <p>heroku[router]: at=error code=H10 desc=&quot;App crashed&quot; method=GET path=&quot;/&quot; host=a
  pi-demo-java.herokuapp.com request_id=b129b503-cdb1-4441-8b7f-6fd475c477e6 fwd=&quot;82.77.127.119&quot; dyno= connect= se
  rvice= status=503 bytes= protocol=https
  2021-05-31T10:33:09.244588+00:00 heroku[router]: at=error code=H10 desc=&quot;App crashed&quot; method=GET path=&quot;/favicon.
  ico&quot; host=api-demo-java.herokuapp.com request_id=a124f92d-e685-4e8b-b8d9-24a2ad5a59c0 fwd=&quot;82.77.127.119&quot; dyno=
  connect= service= status=503 bytes= protocol=https</p>
  <p>I tried to set the port in application properties and I am not using favicon.ico anywhere.</p>
  <p>This is my application.properties:</p>
  <pre><code>    spring.datasource.url=jdbc:mysql://localhost:3306/apidemo
      spring.datasource.username=root
      spring.datasource.password=root
      spring.jpa.hibernate.ddl-auto=update
  
      ## Hibernate Properties
      # The SQL dialect makes Hibernate generate better SQL for the chosen 
      database
      spring.jpa.properties.hibernate.dialect = 
      org.hibernate.dialect.MySQL5InnoDBDialect
  
      server.port=${PORT:8080}
  </code></pre>
  <p>Why is this happening?</p>