heroku部署java spring不工作

hrirmatl  于 2021-07-13  发布在  Java
关注(0)|答案(0)|浏览(216)

我正在向heroku部署一个springmvc(非引导)web应用程序。这是我第一次部署这样的应用程序,所以我不知道什么样的经验证的方式看起来像,为了有一个参考。稍后我将部署一个数据库,但首先要做的是。我在这个repo的基础上成功地构建了它,这个repo通过tomcat在localhost上运行并提供页面,但是在heroku上我得到了下面的错误。

2021-03-29T19:01:49.277836+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=bllksdf.herokuapp.com request_id=99dafc25-68e5-46d9-a6d4-f5d6001b649f fwd="75.72.228.187" dyno= connect= service= status=503 bytes= protocol=https
2021-03-29T19:01:50.270156+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=bllksdf.herokuapp.com request_id=26ff89ab-31c4-4c37-8ec1-82e046f3c065 fwd="75.72.228.187" dyno= connect= service= status=503 bytes= protocol=https
2021-03-29T19:01:54.432141+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/casestudy" host=bllksdf.herokuapp.com request_id=112bde73-31fb-4fd3-a466-45046ad951d5 fwd="75.72.228.187" dyno= connect= service= status=503 bytes= protocol=https
2021-03-29T19:01:54.966284+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=bllksdf.herokuapp.com request_id=49362e46-74b0-44c7-9b90-754d7e3a0648 fwd="75.72.228.187" dyno= connect= service= status=503 bytes= protocol=https
2021-03-29T19:02:08.116846+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/CaseStudy/" host=bllksdf.herokuapp.com request_id=a74ecb05-1b0e-4013-b50b-3bf940e894e6 fwd="75.72.228.187" dyno= connect= service= status=503 bytes= protocol=https
2021-03-29T19:02:08.680513+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=bllksdf.herokuapp.com request_id=9f0e338f-7e76-417a-bdc8-064cd8136d6c fwd="75.72.228.187" dyno= connect= service= status=503 bytes= protocol=https
2021-03-29T19:14:49.680728+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=bllksdf.herokuapp.com request_id=6f4fd4f8-35e1-47b3-a2d6-46dc3c3075cf fwd="75.72.228.187" dyno= connect= service= status=503 bytes= protocol=https
2021-03-29T19:14:50.317907+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=bllksdf.herokuapp.com request_id=0b1a7443-d947-47da-b721-6cf9e187fac6 fwd="75.72.228.187" dyno= connect= service= status=503 bytes= protocol=https
2021-03-29T19:14:56.418773+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/CaseStudy" host=bllksdf.herokuapp.com request_id=67a18abd-24dd-4cdf-81d0-2c42ce7fd16c fwd="75.72.228.187" dyno= connect= service= status=503 bytes= protocol=https
2021-03-29T19:14:56.950960+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=bllksdf.herokuapp.com request_id=04675096-c6fd-4c32-8740-0ac67a6a252c fwd="75.72.228.187" dyno= connect= service= status=503 bytes= protocol=https

我不知道它为什么要提供 path="/favicon.ico 路径。我的代码中肯定没有指定。另外,由于某种原因,在localhost上 /CaseStudy 作为基端点或前缀注入。我不知道为什么-我想那是我的项目名称或什么的。我不确定它在部署时是否会有相同的前缀,或者是否会被剥离。我宁愿把它脱光。它可能是某个配置文件或xml文件中的一行代码。但不管怎样,它都会尝试多个端点,并出现h10错误而崩溃。一旦我把事情做好了,我可以到处玩,试着学习更多,但这是一个瓶颈问题。
我的根目录中有procfile,需要时在pom.xml中有webapprunner插件。
谢谢你的真知灼见!

暂无答案!

目前还没有任何答案,快来回答吧!

相关问题