java - QA服务器中的SpringBoot应用程序不调用端点
问题描述
我正在开发一个 SpringBoot 应用程序,并为 GET 方法公开了一个休息端点。我可以通过点击“localhost:8080/endpoint”或使用 curl“ http://localhost:8080/endpoint ”在本地环境中调用端点,但我无法在 QA 环境中使用实例的 IP 地址而不是 localhost。甚至登录到虚拟机并尝试 curl “ http://localhost:8080 ”,得到 curl connection denied 错误。根据我的理解,嵌入式 tomcat 服务器应该从端口 8080 开始。我是否缺少与 tomcat 配置相关的内容?
解决方案
推荐阅读
- javascript - 如何使用原型在对象中映射数组对象?
- python - 在 3D Numpy 数组上填充三角形(Python)
- dotconnect - 升级到 EF Core 2.2 => 3.1 后,DbSet.Add() 不再生成 Guid ID
- windows - 带有或不带有 INF 文件的 Windows 驱动程序
- javascript - Discord.js 版本 12 我无法禁止用户
- python - 比较后将一个 csv 中的数据附加到另一个 csv 的 Python 脚本
- react-native - DrawerNavigator 在打开时重定向到第一条路线
- angular - 如何在 Angular 的规范测试文件中禁用 strictNullChecks?
- batch-file - 如何使用带有 robocopy 命令的时间戳创建带有日期和时间的文件夹
- java - JsonPropertyOrder 不适用于 javax rs 响应