SpringBoot-Heloku配備エラー

2598 ワード

https://jeong-pro.tistory.com/182のブログを参照し、配布を続行してください.

1) invalid source release: 11



remote: * What went wrong:
remote: Execution failed for task ':compileJava'.
remote: > invalid source release: 11

注意:https://stackoverflow.com/questions/67932932/how-to-resolve-compilejava-errors-during-heroku-deployment

2)Javaバージョンの問題


remote: symbol: method of()
remote: location: interface List
注意:https://devcenter.heroku.com/articles/java-support#specifying-a-java-version

このファイルを作成します.

フォルダに追加しgitを追加します.Git commit-m完了

導入が良好
https://devcenter.heroku.com/articles/java-support#specifying-a-java-version

3)ポート設定の問題


2022-03-23T07:36:25.295831+00:00 heroku[router]: at=error code=H10 desc="App crashed"method=GET path="/favicon.ico"host=eci-server.herokuapp.com request_id=717a18d4-80d0-4fab-a8d4-861c170d216b fwd="163.239.255.161"dyno= connect= service= status=503 bytes= protocol=https
私はそうです

https://devcenter.heroku.com/articles/setting-the-http-port-for-java-applications
ここで言ったように.
server:
    port: $PORT
error code=H10 desc="App crashed"method=GET path="/favicon.ico"host=eci-server.herokuapp.com request_id=1b1261c3-d0e6-4367-b917-16cb7e68a5e3 fwd="163.239.255.161"dyno= connect= service= status=503 bytes= protocol=httpsgit push heroku master