spring - 如何使用 prod 配置文件(Spring Boot)在 Elastic Beanstalk 上的端口 5000 上公开应用程序
问题描述
当我将应用程序部署到 Elastic Beanstalk 时,我希望应用程序在端口 5000 上公开。
这是我的 application.yaml 文件:
spring:
config:
activate:
on-profile: prod
server:
port: 5000
我在 EB 的环境变量中添加了 SPRING_PROFILES_ACTIVE 环境变量
但是,Health 仍处于 Severe 状态,所以我猜该应用程序仍在 8080 上暴露。任何想法我要去哪里。错误的?干杯
解决方案
推荐阅读
- python - 如何使用 Bokeh Server << require("core/util/projections") >>?
- python - 如何在 sqlalchemy 中获取每天的行数?
- php - 这个 sql 查询可以绕过身份验证过程吗?
- node.js - Passport JWT:req.user 始终未授权
- java - 组件如何自动更新内容?
- django - Django 2.1 注释子孙计数
- javascript - 是否有任何库可用于将 CSS 转换为可在 Word 文档中使用的等效 XML 样式?
- node.js - nodejs 6.1.0 安装错误 - node-pre-gyp
- android - 为什么 RecyclerView 项中的 ConstraintLayout 比 LinearLayout 慢?
- sql - 如何更好地优化 SQL 查询?