无法在 Heroku 上部署 Spring Boot 应用程序

时间:2021-05-31 10:36:31

标签: spring spring-boot heroku deployment heroku-api

我正在尝试在 Heroku 上部署 Spring Boot 应用程序,但出现此错误:

heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=a pi-demo-java.herokuapp.com request_id=b129b503-cdb1-4441-8b7f-6fd475c477e6 fwd="82.77.127.119" dyno=connect=se rvice=状态=503字节=协议=https 2021-05-31T10:33:09.244588+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon. ico" 主机=api-demo-java.herokuapp.com request_id=a124f92d-e685-4e8b-b8d9-24a2ad5a59c0 fwd="82.77.127.119" dyno= 连接=服务=状态=503字节=协议=https

我尝试在应用程序属性中设置端口,但我没有在任何地方使用 favicon.ico。

这是我的 application.properties:

    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}

为什么会这样?

0 个答案:

没有答案