Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/mongodb/11.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java 部署SpringBoot+;mongoDB ATLAS应用程序到Heroku_Java_Mongodb_Spring Boot_Heroku_Http Status Code 503 - Fatal编程技术网

Java 部署SpringBoot+;mongoDB ATLAS应用程序到Heroku

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

我正试图用mongoDB Atlas在heroku上部署我的SpringBoot应用程序,我收到一个状态503错误(下图)

这是我的
应用程序。属性
文件:

这是我的
控制器
文件:

我试过:

  • 在MongoDB ATLAS集群中,我将访问列表条目设置为:0.0.0.0 public
  • Heroku仪表板中插入的配置变量:
  • a

    这是我在CLI中的日志尾:

    我收到以下错误: 当我试图进入
    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应用程序?