amazon-web-services - Target group always unhealthy on port 8087 - running spring boot app through application load balancer
问题描述
I am new to AWS. I have an Application load balancer which listens on http:80 and https:443. To this I have attached a target group at port 8087. I have an EC2 instance running a spring boot app on port 8087. This is ec2 is added as target to d above mentioned target group. Now when I try to access my swagger page of app using alb url - https://alb-4444554.us-east-1.elb.amazonaws.com/demo/api/swagger-ui.html (dummy url) , it doesn't load.Because my target group health check on port 8087 fails with code 400. I am able to access swagger page directly from ec2 url and port 8087 . But not through ALB. I want any request coming to my alb to be directed to this ec2 spring boot app.
解决方案
推荐阅读
- javascript - 如何将 ajax 与数据表一起使用,django
- node.js - 如何获取嵌入图像的原始网址?不和谐.js
- json - 使用 SQL OPENROWSET 和 OPENJSON 嵌套 JSON
- python - 如果它落在图像上的某种颜色中,如何获取值列表的总和
- adonis.js - AdonisJS 'bouncer' 包没有按预期工作
- reactjs - 为什么在更改 url 中的参数时组件没有重新渲染?
- python - Swagger UI + OpenAPI 全宽渲染图像
- python - flask_sqlalchemy 显示行数而不是实际的数据库内容
- python - 为什么熊猫数据框在使用 iloc 时会给出错误:int() 的无效文字,基数为 10:"?
- python - 隐写术解码没有给我正确的输入键我该如何解决?