Java 部署SpringBoot+;mongoDB ATLAS应用程序到Heroku
我正试图用mongoDB Atlas在heroku上部署我的SpringBoot应用程序,我收到一个状态503错误(下图) 这是我的Java 部署SpringBoot+;mongoDB ATLAS应用程序到Heroku,java,mongodb,spring-boot,heroku,http-status-code-503,Java,Mongodb,Spring Boot,Heroku,Http Status Code 503,我正试图用mongoDB Atlas在heroku上部署我的SpringBoot应用程序,我收到一个状态503错误(下图) 这是我的应用程序。属性文件: 这是我的控制器文件: 我试过: 在MongoDB ATLAS集群中,我将访问列表条目设置为:0.0.0.0 public Heroku仪表板中插入的配置变量: a 这是我在CLI中的日志尾: 我收到以下错误: 当我试图进入https://inventory-backend-app.herokuapp.com/items Appli
应用程序。属性文件:
这是我的控制器文件:
我试过:
https://inventory-backend-app.herokuapp.com/items
Application error
An error occurred in the application and your page could not be served. If you are the application owner, check your logs for details. You can do this from the Heroku CLI with the command
heroku logs --tail
怎么了?您有一个npm错误。您是否使用了正确的构建包?你也有nodeJS代码吗?或者它只是一个Springboot应用程序?