Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个 Spring Boot 应用程序被推送到 cf. 现在我的应用程序在运行时需要获取我的应用程序正在运行的实例数。它在程序逻辑中使用此信息。我应该如何处理我的代码来获取此信息。(将在对我的项目进行必要的更改后重新部署应用程序)
看看这篇文章:http ://blog.pivotal.io/pivotal-cloud-foundry/products/how-to-integrate-an-application-with-cloud-foundry-using-oauth2
它应该让您与我发布的另一个问题的答案一致: 云铸造应用程序正在运行的实例数