502 bad request on AWS Spring boot application

早过忘川 提交于 2019-12-01 10:37:51

From AWS documentation:

By default, Spring Boot applications will listen on port 8080. Elastic Beanstalk assumes that the application will listen on port 5000. There are two ways to fix this discrepancy: change the port Elastic Beanstalk is configured to use, or change the port the Spring Boot application listens on.

You can set the port in server.port property in application.properties or set it through environment as described in the document referred above by setting SERVER_PORT environment property.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!